how to write matlab code for the equation
Mostrar comentarios más antiguos

4 comentarios
Rik
el 19 de Oct. de 2021
Why don't you try something yourself first? I would recommend writing parts of your equation as separate functions and combining them like this:
%instead of y=@(x) x.^2 + sqrt(sin(x.^3))
part1=@(x) x.^2;
part2=@(x) sqrt(sin(x*part1(x)));
y=@(x) part1(x) + part2(x);
DGM
el 19 de Oct. de 2021
It might be worth asking if you intend to do this numerically or symbolically.
NAGA LAKSHMI KALYANI MOVVA
el 19 de Oct. de 2021
Rik
el 19 de Oct. de 2021
Then start by declaring your variables as symbolic variables and start typing. You can still use my suggestion to minimize the risk of typos.
Respuestas (0)
Categorías
Más información sobre MATLAB Report Generator en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!