How can I plot a sin (x^2) function
Mostrar comentarios más antiguos
here is my code and it works but the figure is obviously not a sin(x^2) function from -pi to pi
syms x;
f=@(x)sin(x.^2);
x=[-pi pi];plot(x,f(x))
grid
Respuesta aceptada
Más respuestas (1)
madhan ravi
el 17 de Sept. de 2019
fplot(@(x)sin(x.^2),[-pi,pi])
1 comentario
Drew Levis
el 17 de Sept. de 2019
Categorías
Más información sobre Code Performance 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!