I'm trying to create three curves, but my plot is blank

조회 수: 1 (최근 30일)
J-Stin
J-Stin 2021년 3월 2일
댓글: Rik 2021년 3월 2일
mi = (2814:1000:19781);
c = 2080;
c(2) = 1580;
c(3) = 2580;
v = c*log(19781/2814);
figure(3)
plot(mi,v);
hold on
plot(mi,v,'.m');
hold on
plot(mi,v,'-');
xlabel('kg')
ylabel('m/s')
title('Q9 plots')
legend('c=2080','c=1580','c=2580')
  댓글 수: 1
Rik
Rik 2021년 3월 2일
If the answer didn't solve your issue, why did you accept it? Have a read here and here. It will greatly improve your chances of getting an answer.
Feel free to comment with clarifications instead of flagging your question.

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

채택된 답변

KSSV
KSSV 2021년 3월 2일
편집: KSSV 2021년 3월 2일
Code looks meaning less though.
mi = [2814 1000 19781];
c(1) = 2080;
c(2) = 1580;
c(3) = 2580;
v = c*log(19781/2814);
figure(3)
plot(mi,v);
hold on
plot(mi,v,'.m');
hold on
plot(mi,v,'-');
xlabel('kg')
ylabel('m/s')
title('Q9 plots')
legend('c=2080','c=1580','c=2580')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by