Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
25 views2 pages

Math 5

Uploaded by

sasa30301212
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Math 5

Uploaded by

sasa30301212
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
11- Two different ways to see the plot > ple? 345), 924) Zz > yell 32 as : Plot xy) | 4 Fl ¢ ap oe) 12- For creating any plot or any graph we using X value andy value 113- If we want to create one more plot in the same window, we use the command hold on 14- How to do a plot when it’s given sin and cos: Ql: create cosine wave with 200 __ 2: * create cosine wave with 20 vector elements on it's x-axls. vector elements on it's X-axis. * create a sine wave with 20 vector elements on it’s X-axis 33x = 022007 >> x = 0:20) >> y= cos (x): By s,costns >> plovixiy) > plot (xy Notes Sern ba Feces % exe hold ott) to MINIT TT the Second fart of | Yuestio.. 4 He >> OEY | >> y = costxy? wae >> phowtxry) ‘% le >> hold on 4 >> go sine wave >> plot (xs), pe >> hold on >> B= cos (0.3*x)2 >> plotixrz) « P? lYellow |e aiaiaiaiein wave SUMMARY « there is 3 types of data. : ’ 1- Integer : 2- float or double 3- characters and = one * f- ce | Remember this is wrong —, |$4, Snum = 400 We can’t write num as a variable, we'll get. an error because variable names can't start with a numeric value. Num3=400 this is correct Remember a=10,; ‘When i use the semicolon it will terminating the statement... Nothing will happen because the statement is closed a=10 Without semicolon the statements will continue If you write who ‘You will see the list of the variable which are available in your walk visible from the current sco Ifyou write whos ‘You will see the detail of the variable

You might also like