How to define Repeating Sequence Stairs block in Simulink?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I was using the repating sequence stairs block a while ago and I had no problem. But after I change my software version I am not able to use the repeating sequence. I do not remember how did I solve before. I just want to create position points in Simulink then I will create a trajectory between stairs.
I got the following error when using the block:
Invalid setting in Repeating Sequence Stair/LimitedCounter/Data Type Propagation' for parameter '(sort(reshape(round(NumBitsAllowFinal), prod(size(NumBitsAllowFinal)),1)))'.
Caused by:
Error evaluating parameter '(sort(reshape(round(NumBitsAllowFinal), prod(size(NumBitsAllowFinal)),1)))' in Repeating Sequence Stair/LimitedCounter/Data Type Propagation'
index exceeds matrix dimensions.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/491290/image.png)
0 Kommentare
Antworten (1)
Austin
am 10 Feb. 2023
So, I just ran into this same issue today and was able to resolve it just by clearing out my workspace, closing, then reopening the file.
In my specific case, I had defined a variable named size and had given it as an array. This caused Simulink to become confused because that Repeating Sequence Stair block uses a function named size.
For whatever reason, this Simulink block was pulling from the base workspace my own variable and trying to interpret it has a function. This was extremely frustrating. I can't think of any other platform that would not have their own internal variables/functions scoped outside of the global base workspace. Why anyone would design a software platform like this is beyond my comprehension.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Inputs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!