Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Need help setting up diff equation in matlab

  1. Oct 3, 2005 #1
    The problem reads as followed: Plot the direction field fo rthe equation dy/dt = y^2-ty

    again using a rectangle large enough to show the possible limiting behavors. Identify the unique constant solution. Why is this solution evident from the differential equation? If a solution curve is ever below the constant solution, what must its limiting behavor be as t increases? For solutions lying above the constant solution, describe two possible limiting behavors as t increases. there is a solution curv e that lies along the boundary of the two limiting behavors. What does it do as t increases.

    ok, now i am having problems plotting the field. I get all the direction vectors pointing down no matter what domain i choose. Here is how i have been typing it in.
    >> [T,Y] = meshgrid(-5:0.2:5, -5:0.2:5);
    >> S = Y^2 - T*Y;
    >> L = sqrt(1 + S.^2);
    >> quiver(T, Y, 1./L, S./L, 0.5), axis tight
     
  2. jcsd
  3. Oct 3, 2005 #2
    anyone? any help is appreciated
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...
Similar Threads for Need help setting Date
MATLAB Help needed to fix a matlab code Nov 8, 2017
Need help with integral Dec 23, 2015
Maple Need help with maple programming Nov 20, 2015
MATLAB 2D diffusion equation, need help for matlab code. Nov 7, 2015
Mathematica: Need help to solve this pde set Dec 6, 2011