Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Fernando  Beltrán
Fernando Beltrán am 16 Jun. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by