I need some help fixing this error, I assume it's in the way I call the function. Any help would be much obliged.

 채택된 답변

James Tursa
James Tursa 2018년 2월 23일
편집: James Tursa 2018년 2월 23일

0 개 추천

You need to save the output of fun into specific elements of T, P, and D. E.g.,
h=0:1:105;
for k=1:numel(h)
[T(k),P(k),D(k)]=fun(h(k));
end
And account for an h input of 0 in your fun.m code:
if(0<=h && h<=11) % <-- changed 0<h to 0<=h

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Embedded Coder에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2018년 2월 23일

편집:

2018년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by