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 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Translated by