Info

This question is closed. Reopen it to edit or answer.

I want to put this equation in MATLAB and write a report about it, I will need at least one graph, can anyone please give me with the code to do so?

1 view (last 30 days)
2(y-1)y= 3t^2 + 4x + 2
y(0)= -1
  5 Comments
Brian Kenor
Brian Kenor on 24 Jun 2018
Edited: Walter Roberson on 6 Jul 2018
That is very true Walter, I noticed there was a problem with that equation. The equation should be
2(y-1)y= 3t^2 + 4t + 2
y(0)= -1.
I have followed through the link Ameer sent above and it is very insightful.
Thanks!

Answers (1)

madhan ravi
madhan ravi on 6 Jul 2018
Edited: Walter Roberson on 6 Jul 2018
syms y(t)
ode=2*(y-1)*diff(y)==3*t.^2+4*t+2
cond=y(0)==-1;
y(t)=dsolve(ode,cond)
fplot(y(t))

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!