필터 지우기
필터 지우기

To import data in Simulink

조회 수: 3 (최근 30일)
Abhinav
Abhinav 2012년 11월 15일
I have a structure like -
control(1).name='asdf'
control(1).start=12
control(1).end=15
control(2).name... .
.
.
.
control(10).name='lkjh'
control(10).start=10
control(10).end=12
I want to import this structure into simulink for computing and use the string for signal naming. However I am not able to do this using 'From workspace'. Is there any way this can be achieved?

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 11월 15일
Structure signals in Simulink are called Bus signals. See Import Structures of timeseries Objects for Buses to see how you can import a bus signal from the workspace into Simulink. It looks like you might need to reformat your data using some MATLAB code to be able to import it.
  댓글 수: 1
Abhinav
Abhinav 2012년 11월 16일
I will try this.
Thanks Kaustubha.

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

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 16일
What do you mean by import to Simulink? Instead, tell us what do you want to do with these data. Because if you want to use these data in simulink, you will do it in Matlab command or a m-file, using commands like set_param

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by