How to call structure value in simulink?

조회 수: 3 (최근 30일)
Arun Badigannavar
Arun Badigannavar 2013년 2월 25일
> Test_Structure
Test_Structure =
a: [10 20 30]
b: [50 60 70]
>> how to call above structure into simulink?

채택된 답변

TAB
TAB 2013년 2월 25일
Simply put Test_Structure.a or Test_Structure.b in constant block to use their values.
  댓글 수: 3
TAB
TAB 2013년 2월 25일
If you want to access the elements of array, put Test_Structure.a in constant block and pass this to data port of Index vector block.
Arun Badigannavar
Arun Badigannavar 2013년 2월 25일
Thank u

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

추가 답변 (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