Passing cells array to inport in Simulink
1 view (last 30 days)
Show older comments
Hi,
I want to pass vectors from a MAT-File, as input port in Simulink, using rapid simulation (rsim in simulink coder).
For exemple, if the dimension of Input1 is [2 1], I'd like to pass a [2 1] size vector at each time step.
I thought to use this kind of code with cell structure
if true
t= [1;2];
Input1.time = t;
Input1.signals.values(:,1) = {[1;1];[2;2]}
end
but there is a Data Type error when building, probably because cells are not accepted.
Does anybody have any idea to deal with it ?
Thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!