how to plot into quadratic graph?

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 22 de Mzo. de 2020
f = @(x,y) 100*(y-y.^2).^2+(1-x).^2;
fsurf(f, [-10 10 -10 10])

4 comentarios

risky amalia
risky amalia el 22 de Mzo. de 2020
it still can't run , what i have to add into that code? Matlab product i use is R2015b
fsurf was introduced in R2016b. You can use the following code in R2015b
f = @(x,y) 100*(y-y.^2).^2+(1-x).^2;
[X, Y] = meshgrid(linspace(-10, 10), linspace(-10, 10));
Z = f(X, Y);
surf(X,Y,Z);
risky amalia
risky amalia el 22 de Mzo. de 2020
thank you so much!!!
Ameer Hamza
Ameer Hamza el 22 de Mzo. de 2020
Glad to be of help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Mzo. de 2020

Comentada:

el 22 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by