I keep getting Undefined function or method 'mtimes' for input arguments of type 'cell'.
1 回表示 (過去 30 日間)
古いコメントを表示
h=2;
[V] = fuelvol1( h )
and the function file is
function[V] = fuelvol1( h )
%
global r H L
r=0.95; %feet
H=2.0; %ft
L=5.0; %ft
d=h-H;
A=(2*r*L*H);
B=(r-d)/r;
C=2*r*d;
D=r-d;
V =A+{(r*r*acos(B))-(D*(C-(d*d)))^0.5}*L;
0 件のコメント
回答 (1 件)
per isakson
2017 年 10 月 11 日
移動済み: Sabin
2024 年 12 月 13 日
The error message is correct, multiplication is not defined for cell. Replace
V = A+{(r*r*acos(B))-(D*(C-(d*d)))^0.5}*L;
by
V = A+((r*r*acos(B))-(D*(C-(d*d)))^0.5)*L;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Integrated Circuits についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!