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 个评论
回答(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!