Error in inline expression
Afficher commentaires plus anciens
>> 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 commentaire
Stephen23
le 13 Mar 2022
I lost count of the syntactical errors.
But the most important question is: why are you using deprecated INLINE?
Réponses (1)
Torsten
le 13 Mar 2022
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)
Catégories
En savoir plus sur Function Creation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!