how to plot f (x,y) at x=1

4 visualizaciones (últimos 30 días)
Muhammad Fahim
Muhammad Fahim el 14 de Oct. de 2019
Respondida: Star Strider el 14 de Oct. de 2019
how to plot f (x,y) at x=1 in matlab

Respuesta aceptada

Star Strider
Star Strider el 14 de Oct. de 2019
See if this does what you want:
y = ...; % Choose A Vector
fy = f(1,y);
figure
plot(y, fy)
Depending upon how you define the fuction and how you want to plot it, you may need:
x = ones(size(y));
instead of the scalar value of 1.
Then the plot call would be:
figure
plot(y,f(x,y))
or
figure
surf(x,y,f(x,y))
Depending on how you wrote the function.

Más respuestas (0)

Categorías

Más información sobre Stateflow en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by