在做异步电机仿真模型时,模仿文献中的方法搭建了仿真模型,其中电机部分采用S函数编写,但是运行时总是显示以下错误信息:
Error in 'cmot/S-Function' while executing M-File S-function 'xwacmotor', flag = 0 (initialize), at start of simulation. MATLAB error message:
Attempted to access x(5); index out of bounds because numel(x)=0.