Too many input arguments.

2 ビュー (過去 30 日間)
Jenice Chen
Jenice Chen 2018 年 12 月 25 日
再開済み: Walter Roberson 2019 年 1 月 15 日
I don't have idea why is wrong. My program showed me this error.
%% ConflictType
for p=1:size(crash_matrix,1)
lcar=crash_matrix(p,14);
fcar=crash_matrix(p,15);
t=crash_matrix(p,3);
n=crash_matrix(p,4);
a=[FLX1(fcar,t,n) FLY1(fcar,t,n)];
b=[RRX1(fcar,t,n) RRY1(fcar,t,n)];
c=[RLX1(lcar,t,n) RLY1(lcar,t,n)];
d=[RRX1(lcar,t,n) RRY1(lcar,t,n)];
e=[FRX1(fcar,t,n) FRY1(fcar,t,n)];
f=[RRX1(fcar,t,n) RRY1(fcar,t,n)];
crash_matrix(p,16)=cross(a,b,c,d);
crash_matrix(p,17)=cross(e,f,c,d);
crash_matrix(p,18)=bitor(crash_matrix(p,16),crash_matrix(p,17));
end
Error using cross
Too many input arguments.
Error in HK0806 (line 173)
crash_matrix(p,16)=cross(a,b,c,d);

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 25 日
編集済み: madhan ravi 2018 年 12 月 25 日
doc cross % only requires three inputs max where third is the dimension but you used 4

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by