댓글 수: 4

David Hill
David Hill 2020년 8월 13일
There are already many Matlab functions that output plots.
alpedhuez
alpedhuez 2020년 8월 13일
For example?
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일

0 개 추천

function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.

댓글 수: 3

alpedhuez
alpedhuez 2020년 8월 13일
Multiple plots, not just one!
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개)

카테고리

도움말 센터File Exchange에서 Labels and Styling에 대해 자세히 알아보기

태그

질문:

2020년 8월 13일

댓글:

2020년 8월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by