MTOW= 242;
OEW=141.3119;
PAY=60;
SFC=0.29/3600;
g=9.8;
U=[0 5 10 15 20 25 30 35 40];
P=[32.91428 30.8628 26.5554 23.45806 22.92738 24.98139 29.61881 36.97433 47.2849];
U_by_P= U./P;
R=(U_by_P).*((MTOW-OEW-PAY)./(g.*SFC));
plot(U_by_P,PAY,'r')

댓글 수: 5

KSSV
KSSV 2021년 3월 15일
PAY is a single number........you cannot plot like that...
use:
plot(U_by_P,PAY,'.r')
Sourav singh
Sourav singh 2021년 3월 15일
by doing this i am getting small small points ......how can i make it as a line ( continous line)
KSSV
KSSV 2021년 3월 15일
plot(U_by_P,PAY*ones(1,length(U_by_P)),'r')
Sourav singh
Sourav singh 2021년 3월 15일
when i am putting this..... plot(U_by_P,PAY*ones(1,length(U_by_P)),'r');
it shows error
Try this:
plot(U_by_P,PAY*ones(size(U_by_P)),'r')
That should work.

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

답변 (1개)

VBBV
VBBV 2021년 4월 1일

1 개 추천

%f
plot(U_by_P,R,'r')
Try above. You might want plot of R and U_by_P

질문:

2021년 3월 15일

답변:

2021년 4월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by