Ask your own question, for FREE!
Mathematics 13 Online
OpenStudy (bgrg007):

@Euler271 or anyone else, please help. matlab question! syms x y=sin(x^2)*cos(x) dy=diff(y,x) a=ezplot(y,[-pi,pi]); hold on b=ezplot(dy,[-pi,pi]); grid on title(['Graphs of y=sin(x^2)cos(x) and dy/dx by Bishwo Gurung']); xlabel('x-axis'); ylabel('y-axis'); set(a,'Color', 'blue', 'LineWidth', 2); set(b,'Color', 'red', 'LineWidth',2, 'LineStyle', '--'); legend('sin(x^2)cos(x)', 'dy/dx','Location', 'NorthEastOutside'); so, on the set command. i made y blue and dy red. but the figure makes the y red instead and dy blue instead. help?

OpenStudy (loser66):

@e.mccormick I don't understand this language

OpenStudy (loser66):

it's computer science , put it there, they will help you

OpenStudy (e.mccormick):

It is matlab. Matlab is a mathematics software. @robtobey uses it, but he is off. They have some tutorials on their web site.

OpenStudy (bgrg007):

this is the matlab of calc3

OpenStudy (anonymous):

try swapping a=ezplot(y,[-pi,pi]); b=ezplot(dy,[-pi,pi]); the reason is you are plotting a first and then you are using HOLD ON. meaning it acquires value of a first which in this case based on the code is dy and then it plot b on it try this first , lets see if it works

OpenStudy (bgrg007):

i just checked. the graph was right the whole time. i mistook the dy graph for y and vice versa. silly me lol

OpenStudy (bgrg007):

but thx guys :)

OpenStudy (anonymous):

@e.mccormick I use Mathematica 8, Home Edition, the only mathematics software I'm familiar with.

OpenStudy (e.mccormick):

Ah, sorry. Rememberd the wrong software for you!

OpenStudy (anonymous):

np

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!