필터 지우기
필터 지우기

how to make matlab and simulink connected and automatic working

조회 수: 1 (최근 30일)
Vivi
Vivi 2013년 7월 16일
I wrote the algorithm to calculate the external force for a mass-spring-damping system in matlab and also made the model to simulate the mass motion in simulink, but two files are separated ( one is in matlab and other one in simulink). I would like to connect them together and only set parameters in matlab to run the whole system ( after the algorithm, calculate the force, and then import the force to simulink to calculate the mass motion, done). so, how to connect them or how to make this work? Thanks
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2013년 7월 16일
Does the MATLAB function need to run in the simulation loop of the model (ie, at every time-step), or does it run just once and have its output imported as an input signal in Simulink?
Vivi
Vivi 2013년 7월 16일
Just run once and export the result, then use the result as an input signal in Simulink.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by