I keep getting Error: Function definitions are not permitted at the prompt or in scripts.

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;

Respuestas (1)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Oct. de 2017

Respondida:

el 11 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by