I keep getting Error: Function definitions are not permitted at the prompt or in scripts.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
function[V] = fuelvol1( h )
%
%
global r H L
r=0.95;%feet
H=2.0;%ft
L=5.0;%ft
d=h-H;
V =(2*r*L*H)+{r*r*acos((r-d)/r)-((r-d)*((2*r*d)-(d*d))^0.5}*L;
0 commentaires
Réponses (1)
Walter Roberson
le 11 Oct 2017
You have to store that code in a file named fuelvol1.m
0 commentaires
Voir également
Catégories
En savoir plus sur Financial Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!