Some questions about simulink.
조회 수: 7 (최근 30일)
이전 댓글 표시
Hello all!
I am currently doing real-time speech processing with 'Queue(FIFO buffer)' using simulink.
Now, I built overall system diagram but have some problems to be executed. (like this : http://www.flickr.com/photos/52197146@N07/7216105684/in/photostream)
(1) How can I load variable or .mat file from MATLAB workspace? I used 'from workspace' or 'from file' block, but it reads the data 'along time', which is unnecessary for my system.
(2) I want to execute my system basically in MATLAB workspace. Only recording and pre-processing of recording data in FIFO is done by simulink. And processed data should be passed to MATLAB workspace.
But I don't know how to execute simulink simulation in the middle of excuting MATLAB. Is there anyone who can give me some advice? I really appreciate all of your comments.
댓글 수: 0
채택된 답변
K E
2012년 5월 17일
Yes, it is possible to run a Matlab script to execute simulations using the sim command. And if the variables that you want to load are meant to be parameters, for example a gain that you will vary for a parameter study, this can be done in your Matlab script with the set_param command. This recent answer has some more details.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Real-Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!