A function that outputs multiple plots?

조회 수: 2 (최근 30일)
alpedhuez
alpedhuez 2020년 8월 13일
댓글: alpedhuez 2020년 8월 13일
  댓글 수: 4
hosein Javan
hosein Javan 2020년 8월 13일
alpedhuez for example the function "step" plots step response of a system. or the function "spectrogram" plots the fourier transform spectrum.
alpedhuez
alpedhuez 2020년 8월 13일
Let me work on it.

댓글을 달려면 로그인하십시오.

채택된 답변

hosein Javan
hosein Javan 2020년 8월 13일
function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.
  댓글 수: 3
hosein Javan
hosein Javan 2020년 8월 13일
편집: hosein Javan 2020년 8월 13일
function plotoutput()
x = 1:10;
y1 = x.*x;
y2 = x + 1;
figure(1);plot(x,y1)
figure(2);plot(x,y2)
alpedhuez
alpedhuez 2020년 8월 13일
Let me work on it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by