how to use a data from matlab as a input in simulink

Hi, I am new in matlab and simulink. I calculated a motion with time in matlab and then I would like to use it as a input data in simulink. Anyone can teach me how to do this please. Please tell more details as I am really really new user. Thanks.

1 comentario

Vivi
Vivi el 16 de Jul. de 2013
what to write in Matlab, use which block,and what to set in Simulink to allow the Simulink to read this data.

Respuestas (1)

Andreas Goser
Andreas Goser el 16 de Jul. de 2013

0 votos

There is a "From Workspace" block in the sources library. That's all you need. And there is a documentation.

6 comentarios

Vivi
Vivi el 16 de Jul. de 2013
I follow the documentation, but when I run the simulink error shown up. Should I have to write something in Matlab to allow the simulink to read the data?
It would help to post the error. Try simple test data first so that you understand the block. Feel free to post more details here.
Vivi
Vivi el 16 de Jul. de 2013
Error: undefined function or variable 'data' ( data is the name of the motion called in M and S).
Vivi
Vivi el 16 de Jul. de 2013
Should I use the From File block?
What does "which data -all" return?
I am under the impression that "data" is a variable in the workspace, If it is in a file, indeed (if in the right format), then indeed From File block

La pregunta está cerrada.

Etiquetas

Preguntada:

el 16 de Jul. de 2013

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by