Passing cells array to inport in Simulink

4 visualizaciones (últimos 30 días)
fayçal ahmed zaid
fayçal ahmed zaid el 16 de Ag. de 2016
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

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by