 Matlab Problems

Subject Mathematics MATLAB for Mathematics

Question

Problem 1. Create a simple plot of hyperbolic secant function (sech) using the exponential function, or similar, with axis labels and a title using a script. Put the script and the plot into a word processed file.

Problem 2. Create the table in a small script. Use a diary file to display the script by typing "diary <filename>" at the prompt, then "type <plotfile>.m", then executing the file. Typing "diary" at the prompt will then stop recording what happens at the prompt. Feel free to copy the diary file into a word processed file.

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Problem 1
x = -2*pi:0.01:2*pi;
y=2./(exp(x)+exp(-x));
plot(x,y);
xlabel('x');
ylabel('y');
title('Graph of the hyperbolic secant');...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Related Homework Solutions

Hemisphere Problem in Matlab \$18.00
Hemisphere
Mathematics
Matlab
Computing
Geometry
Figures
Volumes
Dimensions
Input
Output
Statements
VariablesTables
Scripts
Algorithms
Matlab Problems \$38.00
Computer Science
Mathematics
Matlab
Programming
Arrays
Binary Approximation
Series
Zeros
Min/Max Values
Root Function
Round-Off Error
Functions
Statements
Variables
Plots
Mathematics Questions \$100.00
Mathematics
Matlab
Taylor
Polynomial
Newton-Raphson
Model
Hessian
Laplace
Neumann
Equations in Matlab \$80.00
Mathematics
Computer Science
Matlab
Nonlinear Equations
Newton-Raphson Method
Termination Conditions
Gaussian Elimination
Built-In Commands
Variables
Statements
Cos
Tanh
M-Files
Arbitrary Systems
MATLAB Exercises \$23.00
Mathematics
MATLAB
Exercises
Command
Plot
Equation
Function
Graph
Live Chats