controls rough

controls rough - >> plot(x,y1,x,((y1/sin(x))+y1))...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 rough >> x=-1:1 x = -1 0 1 >> y1=sin(x) y1 = -0.8415 0 0.8415 >> y2=(x^2) ??? Error using ==> mpower Inputs must be a scalar and a square matrix. >> y2=x*x ??? Error using ==> mtimes Inner matrix dimensions must agree. >> y2=[1 0 0] y2 = 1 0 0 >> plot(x,(y1+y2),'yo') >> plot(x,(y1+y2),'--','Linewidth',6) >> x=-1:0.1:1 x = Columns 1 through 7 -1.0000 -0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 Columns 8 through 14 -0.3000 -0.2000 -0.1000 0 0.1000 0.2000 0.3000 Columns 15 through 21 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000 1.0000 >> y1=sin(x) y1 = Columns 1 through 7
Background image of page 1

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

View Full DocumentRight Arrow Icon
Sheet1 Page 2 -0.8415 -0.7833 -0.7174 -0.6442 -0.5646 -0.4794 -0.3894 Columns 8 through 14 -0.2955 -0.1987 -0.0998 0 0.0998 0.1987 0.2955 Columns 15 through 21 0.3894 0.4794 0.5646 0.6442 0.7174 0.7833 0.8415 >> y2=[1 0 0] y2 = 1 0 0 >> plot(x,y1,x,y2) ??? Error using ==> plot Vectors must be the same lengths.
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> plot(x,y1,x,((y1/sin(x))+y1)) >> plot(x,y1,x,((y1/sin(x))+(x^2)) ??? plot(x,y1,x,((y1/sin(x))+(x^2)) | Error: Expression or statement is incorrect--possibly unbalanced (, {, or [. >> plot(x,y1,x,((y1/sin(x))+(x^2))) ??? Error using ==> mpower Inputs must be a scalar and a square matrix. >> plot(x,y1,x,((y1/sin(x))+(x*x))) ??? Error using ==> mtimes Inner matrix dimensions must agree. >> plot(x,y1,x,((y1/sin(x))+(1 0 0)) ??? plot(x,y1,x,((y1/sin(x))+(1 0 0)) | Error: Unexpected MATLAB expression. >> plot(x,(y1+y2)) ??? Error using ==> plus Matrix dimensions must agree. >> x=-1:1 x =-1 0 1 >> plot(x,(y1+y2)) ??? Error using ==> plus Matrix dimensions must agree. Sheet1 Page 3 >> y1=sin(x) y1 =-0.8415 0 0.8415 >> y2=[1 0 0] y2 = 1 0 >> plot(x,y1,x,y2)...
View Full Document

This note was uploaded on 02/20/2011 for the course MEC 709 taught by Professor Sharifi during the Winter '11 term at Ryerson.

Page1 / 3

controls rough - >> plot(x,y1,x,((y1/sin(x))+y1))...

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

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