Simulink, error while parsing Matlab function
1 回表示 (過去 30 日間)
古いコメントを表示
Errors occurred during parsing of MATLAB function 'Subsystem1/MATLAB Function2'(#34)
This is the code in the Matlab function:
function [Thrust1,Torque1] = fcn(PWM_M)
Thrust3 = zeros;
Torque3 = zeros;
PWM = [1000 1200 1500 1600 1650 1700 1750 1800 1850 1900 1950 2000];
Frec_M = [0 50 75 84 91 94 100 109 113 119 121 125];
RPM_M = Frec_M * 60;
Thrust_all = 8.9e-7*RPM_M.^2.3314;
Torque_all = 1.0798e-005*Thrust;
Thrust1 = interp1(PWM,Thrust_all,PWM_M,'spline');
Torque1 = interp1(PWM,Torque_all,PWM_M,'spline');
end
2 件のコメント
Mischa Kim
2014 年 4 月 11 日
What are the error msgs? Where is the variable Thrust declared or assigned?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!