Import data from workspace to mfile

4 visualizaciones (últimos 30 días)
Radhakrishna Kotti
Radhakrishna Kotti el 10 de Abr. de 2012
Respondida: Zahid Khan el 9 de Jun. de 2018
Hello, I am Radhakrishna and I have a problem please help me out. I have a .mdl file and I run my simulation of that file for a time of 51ms and then pause it. During this time some values obtained in the simulation are given to workspace, now I use the values in workspace in a formula and generate a value x, and now I have to update x back in the same .mdl file and run the simulation from 51ms to 100ms.

Respuestas (2)

Kaustubha Govind
Kaustubha Govind el 10 de Abr. de 2012
When you say "formula", how is it implemented? You should simply have "x" as one of the input signals to the block that implements this formula. Then, instead of writing "x" to the workspace, you need to simply wire the corresponding signal to the formula block.

Zahid Khan
Zahid Khan el 9 de Jun. de 2018
How you sent values from workspace to mfile ?

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by