- #1
Pepsi24chevy
- 65
- 0
Hey guys i have nonlinear equation: dy/dt = 3siny + y - 2. I got the direction field with this
>> [T,Y] = meshgrid(-5:00.2:5, -5:0.2:5);
>> S = (3*sin(Y))+Y-2;
>> L = sqrt(1 + S.^2);
>> quiver(T, Y, 1./L, S./L, 0.5), axis tight
>> xlabel 't', ylabel 'y'
>> title 'Direction Field for dy/dt = (3*sin(Y))+Y-2'
NOw i need to use fzero function to find approximate values for all the equilibria of teh system. I just dont' know how to use fzero with a dif equation like this. ANy help is appreciated. thanks Also, i know the values are around 0.5 and 4.
>> [T,Y] = meshgrid(-5:00.2:5, -5:0.2:5);
>> S = (3*sin(Y))+Y-2;
>> L = sqrt(1 + S.^2);
>> quiver(T, Y, 1./L, S./L, 0.5), axis tight
>> xlabel 't', ylabel 'y'
>> title 'Direction Field for dy/dt = (3*sin(Y))+Y-2'
NOw i need to use fzero function to find approximate values for all the equilibria of teh system. I just dont' know how to use fzero with a dif equation like this. ANy help is appreciated. thanks Also, i know the values are around 0.5 and 4.