This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: the table in the instructions, create the results from the first function (y1), create the results from the second function (y2), and plot. Making the x values We want to go from 0 to 5 in increments of 0.5, so its straight forward x = 0:0.5:5; Making the y1 and y2 values We need to solve the equations to generate these from the x values y1 = (12-3*x)/2; y2 = (15-6*x); Make the plot Again straight forward. They can format it however they wish. It doesn't matter plot(x,y1,x,y2) grid on xlabel( 'x' ), ylabel( 'y' ) title( 'Lab 1 Assignment Solution' ) 1 Intersection Point The intersection occurs at the point (2,3) Published with MATLAB 7.11 ENGR 231 - Lab 1 Assignment Solution 2...
View Full Document
This note was uploaded on 11/11/2011 for the course ENGR 231 taught by Professor Olehtretiak during the Fall '10 term at Drexel.
- Fall '10