필터 지우기
필터 지우기

how to use m file in simulink

조회 수: 1 (최근 30일)
Zorak
Zorak 2014년 6월 23일
답변: Kaustubha Govind 2014년 6월 26일
I am very new at this,I want to use a mfile plot output to a simulation.
Let the mfile be,
x=[1 2 3 ....] y=[5 4 6 ....] plot(x1,y1,'-',x1,y1,'*')
how can i use this plot in simulink,specifically in the input block
Pls,help me.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2014년 6월 26일
Not sure what you mean by "use the plot in Simulink" - do you just need to use x as time and y as data in the model? In that case, you want may to look at the documentation for Import Data to Root-Level Input Ports and Import Data Arrays.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by