使用MATLAB功能块模拟Simulink模型时,我收到域错误:
An error occurred while running the simulation and the simulation was terminated
Caused by:
- Domain error. To compute complex results from real x, use 'sqrt(complex(x))'.
果然,该函数包含{em>批次的sqrt
函数,我不打算对所有这些函数进行范围检查;所以我想知道这些sqrt
中哪些正在生成域错误。但是,错误不包含行号。
我不知道调试器如何帮助我(我也不能让它给我一个行号),而且积极地disp
- 所有东西都不起作用,因为Simulink似乎没有{ {1}}用于中间整合步骤的任何内容。
我怎样才能找出哪条线给我带来麻烦?