フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am trying to pass the value of the matrix one by one for run my function but it shows error!

1 回表示 (過去 30 日間)
Sreet Swastik
Sreet Swastik 2013 年 4 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I_mot=0.81772*ones(20,1);
alpha0=60 + 60*rand(20,1); %Stores random value in 20 by 1 matrix
alpha1=alpha0;
for i=1:20
tbeg=0;
tsim=3;
alpha(i)=alpha1(i,1);
[I_steadystate,Ir_rms]=motor_model(alpha(i),tbeg,tsim);
I_actual(i,1)=I_steadystate(i);
end
I_actual
The error is:
?? Undefined function or method 'motor_model' for input arguments of type 'double'.
Error in ==> test at 9
[I_steadystate,Ir_rms]=motor_model(alpha(i),tbeg,tsim);
  1 件のコメント
Matt Kindig
Matt Kindig 2013 年 4 月 23 日
編集済み: Matt Kindig 2013 年 4 月 23 日
Is motor_model.m on your path? What does this command give you:
which motor_model
?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by