fplot differentiated symbolic equation
Mostrar comentarios más antiguos
Hello there!
I'm trying to use the fplot function to plot an equation that I defined previously. However I think because I used syms and the diff() function to create the variable I am trying to plot, it is messing up the fplot function. My output is one graph which I already got to plot and an orange error message saying: '''The following error was reported evaluating the function in FunctionLine update: sym output type is not supported. Set 'UniformOutput' to false.'''
Any ideas for how to solve this? All other threads talk about arrayfun or something unrelated, if not, no worries, but thanks!
1 comentario
robert hyde
el 8 de Nov. de 2017
Editada: robert hyde
el 8 de Nov. de 2017
Respuesta aceptada
Más respuestas (2)
Karan Gill
el 8 de Nov. de 2017
You made a simple mistake. You used anonymous functions instead of symbolic functions. Declare a symbolic function using
syms Va(t)
Va(t) = t^2;
and plot it with fplot
fplot(Va)
Comment if you have issues. If it works, please accept this answer.
1 comentario
robert hyde
el 8 de Nov. de 2017
Omer Ali
el 12 de Nov. de 2017
0 votos
Thanks for asking this Rob! :)
Categorías
Más información sobre Number Theory en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!