Importing workspace variable to simulink?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Fangjun Jiang
am 6 Aug. 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 Kommentare
Santos García Rosado
am 10 Mär. 2021
Link to Fangjun's answer: https://www.mathworks.com/matlabcentral/answers/768262-import-matlab-matrix-to-simulink
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!