how to resolve "At least one value is out of range for rectangle or position" error?
3 ビュー (過去 30 日間)
古いコメントを表示
Description: I have my own custom script for creating harness and in that While creating test harness i am facing this error on "create.m" default script at this line. i am using matlab 2018b version
>> Simulink.harness.create(harnessOwner, varargin{:});
and when i am trying to go inside this it is telling it is .p script so unable to debug it. so, after run the script it is giving me this error "At least one value is out of range for rectangle or position. All x values must be within -32786..32767 range, all y values must be within -32786..32767 range"
0 件のコメント
回答 (1 件)
Shlok
2024 年 7 月 17 日
Hi,
Considering the error mentioned above, it looks like that coordinate values in your harness creation script are falling outside the acceptable range (-32786 to 32767) for rectangle or position coordinates in Simulink.
Since “.p” files cannot be debugged directly, you can try isolating the problem by simplifying your input, breaking down the process into smaller steps and try logging the inputs to identify where the out-of-range values are being introduced.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!