필터 지우기
필터 지우기

for loop Matlab code in Simulink

조회 수: 3 (최근 30일)
Mirzobek Malikov
Mirzobek Malikov 2022년 10월 4일
댓글: Goncalo Torres 2022년 10월 4일
Hi,
I was coding on Matlab by using for loop to get different values at each time. Now, I have to use the data in Simulink at each run time. Means, once run the Matlab code then some output from Matlab must be sent to the Simulink, Simulink will use the ouput to run the blockes. The next step time, the second value must be goot from the Matlab firsst then will be sent to the Simulink. So, at each time step Matlab and Simulink must have to work together. I would be so appreciated if someone can help me, it has been a week still couldn't solve it.
Matlab code have for loop, but I wanna use the for loop for the whole. But I wanna run the Matlab and Simulink simultneously.
  댓글 수: 1
Goncalo Torres
Goncalo Torres 2022년 10월 4일
What if you use a MATLAB function block in Simulink and implement your code there?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by