필터 지우기
필터 지우기

Matlab is not plotting

조회 수: 1 (최근 30일)
Mahmoud Abbas
Mahmoud Abbas 2022년 3월 8일
편집: KSSV 2022년 3월 8일
How to make matlab plot this (it shows an empty graph)
for i=1:10
M=1+i;
plot(i,M,'LineWidth',2)
hold on
end

채택된 답변

KSSV
KSSV 2022년 3월 8일
편집: KSSV 2022년 3월 8일
As you are plotting a point, you need to use marker.
for i=1:10
M=1+i;
plot(i,M,'.','MarkerSize',5)
hold on
end
You can also plot all at once. Using:
i = 1:10 ;
M = i+1;
figure
plot(i,M,'.-')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by