New Word 2007 Document (9)

New Word 2007 Document (9) - . 4. Plot both y1plot and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 1 : The following steps show how to use Matlab to plot the functions and        together in the same graph from to . 1. Define a Matlab (vector) variable xplot to take on 100 evenly-spaced values between -pi and pi . You can use linspace to do this. 2. Define the (vector) variable y1plot by y1plot=cos(xplot) . 3. Define the (vector) variable y2plot by y2plot=xplot
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: . 4. Plot both y1plot and y2plot by plotting the first, 5. plot(xplot,y1plot) then hold on , plot the second, and hold off . The two lines intersect, clearly showing that a solution to the equation exists. Include the Matlab commands you used in your summary file. Send me the plot in the form of a jpg file. To create such a file, use the command...
View Full Document

Ask a homework question - tutors are online