Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How I can keep step in a variable using the FROM WORKSPACE block?

1 visualización (últimos 30 días)
Fernando  Beltrán
Fernando Beltrán el 16 de Jun. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a problem when I use the block FROM WORKSPACE. I have tried several options but do not get what I want.
I store a variable of a model to the workspace. This variable has a variable step size. But when I want it back for use in another model, does not use all values of the vector, for example:
Variable stored in the workspace:
wave.time = [0 0.1 0.3 0.4 0.45 0.6 ............] ' wave.signals.values = [1.56 1.99 2.5 1.23 0 2.15 .............] '
Variable used in the new model with block FROM WORKSPACE :
wave.time = [0 0.1 0.4 0.6 ............] ' wave.signals.values = [0 1.23 1.56 2.15 .............] '
I have tried several things. I have kept the variable as TimeSeries, as Structure with Time, as ARRAY, (creating a vector time with the CLOCK block), and I always get the same.
I send a file with options selected on the blocks. In the configuration parameters I have selected that the max and min step size is auto.
I do not know where the error is.
Thanks

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by