I need to extract a range of values from variable size data in SIMULINK
2 次查看(过去 30 天)
显示 更早的评论
I have a matlab function named nodes inside SIMULINK, with one of the outputs named xr. xr is actually a variable sized array with maximum dimensions as 11x1 (set in the ports and data manager).
In another MATLAB function, I require to extract values with index ranging from 2:6. However SIMULINK doesn't allow me to extract this range and gives an error " An error occurred while running the simulation and the simulation was terminated Caused by:
- Code generation assumption about size violated. Unexpected run-time vector changed predicted orientation. "
Can any one guide me how to tackle this issue?
0 个评论
回答(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!