Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
using the output of ode45 in a meshgrid. please help.

Subject: using the output of ode45 in a meshgrid. please help.

From: salman

Date: 7 May, 2011 02:34:04

Message: 1 of 1

dear friends,

i am facing a problem. i solved 9 coupled equations using ode45. that matrix is now y(:,:). now i want to feed the y(:,3) value to this relation;

e1=i * c* y(:,3)*z + t - z./16;

here z=[linspace(0,.0001,200)]'; size of y(:,3) is same as z, i.e. 200x1;
t is also 200x1, but when i use this command

meshgrid(t,z);
surf(t,z,e1);

its not giving plot.

any suggestions how to obtain plot for this. the y(:,3) entry is actually output of the ode45, and i want to use this entry in the equation that i just mentioned.

any help is greatly appreciated.

thank you very much,

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us