Passing cells array to inport in Simulink
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!