A function that outputs multiple plots?

1 visualización (últimos 30 días)
alpedhuez
alpedhuez el 13 de Ag. de 2020
Comentada: alpedhuez el 13 de Ag. de 2020
  4 comentarios
hosein Javan
hosein Javan el 13 de Ag. de 2020
alpedhuez for example the function "step" plots step response of a system. or the function "spectrogram" plots the fourier transform spectrum.
alpedhuez
alpedhuez el 13 de Ag. de 2020
Let me work on it.

Iniciar sesión para comentar.

Respuesta aceptada

hosein Javan
hosein Javan el 13 de Ag. de 2020
function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.
  3 comentarios
hosein Javan
hosein Javan el 13 de Ag. de 2020
Editada: hosein Javan el 13 de Ag. de 2020
function plotoutput()
x = 1:10;
y1 = x.*x;
y2 = x + 1;
figure(1);plot(x,y1)
figure(2);plot(x,y2)
alpedhuez
alpedhuez el 13 de Ag. de 2020
Let me work on it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Spectral Measurements 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