Passing cells array to inport in Simulink
1 回表示 (過去 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!