Lab 1 solution

Lab 1 solution - the table in the instructions, create the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 231 - Lab 1 Assignment Solution Table of Contents General Notes . ............................................................................................................ 1 Making the x values . .................................................................................................... 1 Making the y1 and y2 values . ........................................................................................ 1 Make the plot . ............................................................................................................ 1 Intersection Point . ....................................................................................................... 2 General Notes This should be very easy. The hint gives them the exact gameplan for how to do it: Create x values using
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

Lab 1 solution - the table in the instructions, create the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online