필터 지우기
필터 지우기

Whats wrong in those equations?

조회 수: 1 (최근 30일)
Mo_B
Mo_B 2016년 12월 23일
답변: James Tursa 2016년 12월 23일
x=(0:0.5:80);
y1=(0.02049/0.4)*x;
y2=(0.59*60/(1+(1.331/(sqrt(0.0631*x/(74.45-x)))^3)));
y3=(0.59*60/(1+(1.331/(sqrt(0.0631*x/(74.45-x)))^3)))-(0.02049/0.4)*x;
y4=(0.02049/0.4)*x-(0.59*60/(1+(1.331/(sqrt(0.0631*x/(74.45-x)))^3)));
figure
plot(x,y1,'r')
hold on
plot(x,y2,'c')
plot(x,y3,'g')
plot(x,y4,'b')
legend('y1','y2','y3','y4')
axis([0 80 0 3.5])
Hello Community,
I'm currently studying at the German Sport University Cologne and I'm an absolute newbie in Matlab. I need your help with those equations, Matlab gives me an Error using /
all I get is y1
Thank you very much!

채택된 답변

James Tursa
James Tursa 2016년 12월 23일
Use element-wise operators (beginning with a dot) instead of matrix operators. E.g.,
y1=(0.02049/0.4)*x;
y2=(0.59*60./(1+(1.331./(sqrt(0.0631*x./(74.45-x))).^3)));
y3=(0.59*60./(1+(1.331./(sqrt(0.0631*x./(74.45-x))).^3)))-(0.02049/0.4)*x;
y4=(0.02049/0.4)*x-(0.59*60./(1+(1.331./(sqrt(0.0631*x./(74.45-x))).^3)));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by