Effacer les filtres
Effacer les filtres

Importing workspace variable to simulink?

1 vue (au cours des 30 derniers jours)
satish kumar
satish kumar le 6 Août 2020
Can u help how to import a workspace variable to simulink. I am facing problem with simin block. It is asking for time column. But i want to send only variable, in my case it is row vector.

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 6 Août 2020
Use "From Workspace" block. Assume your data is MyData=1:10, you need to make it a column vector and also provide a column vector of time.
time=(0:0.1:0.9)';
Specify the data as [time, MyData.'] for the "From Workspace" block.
  2 commentaires
Santos García Rosado
Santos García Rosado le 10 Mar 2021
Hi Fangjun. Does this work with a Matrix aswell?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by