Question
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 1x = -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');...