Matlab plotting cosh
I have no idea what I'm doing. I got help writing a Matlab program that plots the cosh(3x-(pi/2)) and sinh(5x+(pi/8)) on a single plot from x=-5 to 25 using a script file. But could you please explain to me what each line of this script file represents/does and how I actually get the graph to come up in Matlab? I especially don't understand what the i's, n's, and colons are for. Please see attachment.
Thanks.
© BrainMass Inc. brainmass.com June 7, 2023, 2:20 pm ad1c9bdddfhttps://brainmass.com/computer-science/matlab/matlab-plotting-cosh-sinh-single-plot-script-7744
Solution Preview
Here is the description of the meaning of different symbols used in script file:
% => comment out the line
x(1) = - 5 => first point of x starts from -5
n =300 => the value assigned to variable n
for i =1:n+1 => loop for i =1 to n+1
y(1,i) => first y function's ...
Solution Summary
Matlab plotting cosh is embedded. The Matlab plotting cosh and sinh on a single plot using a script are examined.
Free BrainMass Quizzes
-
This quiz contains questions about C# classes and variables.
-
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
-
Quiz on basics of javascript programming language.
-
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
-
This quiz tests your knowledge of basics of MS-Excel.