>> f=inline('8 abs(9 cos^(-1)(3 - h/3) - (3 - h) sqrt(6 h - h^2))-100','h');
% Invalid expression what is wrong

댓글 수: 1

Stephen23
Stephen23 2022년 3월 13일
I lost count of the syntactical errors.
But the most important question is: why are you using deprecated INLINE?

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

답변 (1개)

Torsten
Torsten 2022년 3월 13일

0 개 추천

f = @(h) 8*abs(9*acos(3 - h/3) - (3 - h).*sqrt(6*h - h.^2)) - 100
or
f = @(h) 8*abs(9./cos(3 - h/3) - (3 - h).*sqrt(6*h - h.^2)) - 100
depending on what you mean by cos^(-1)

카테고리

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

제품

태그

답변:

2022년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by