Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Fernando  Beltrán
Fernando Beltrán le 16 Juin 2016
Clôturé : MATLAB Answer Bot le 20 Août 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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by