Importing workspace variable to simulink?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Fangjun Jiang
2020년 8월 6일
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
Santos García Rosado
2021년 3월 10일
Link to Fangjun's answer: https://www.mathworks.com/matlabcentral/answers/768262-import-matlab-matrix-to-simulink
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!