필터 지우기
필터 지우기

What is the advantage of defining a variable as workspace object?

조회 수: 1 (최근 30일)
ANKIT
ANKIT 2013년 10월 4일
댓글: ANKIT 2013년 10월 5일
Hello,
What is the advantage of defining a variable as workspace object using simulink.parameter over directly defining a variable (as x = 2)?
Any article or documentation for same will be highly helpful.
Thanks.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 10월 4일
Using just a regular variable allows you to define a value for a parameter. However, using a Simulink.Parameter object allows you to specify a lot of other information (see the previous link), like "the parameter's purpose, its dimensions, or its minimum and maximum values". There are additional fields like 'Storage class' and 'Alignment' which are used to achieve advanced features in code generation.
  댓글 수: 1
ANKIT
ANKIT 2013년 10월 5일
Hello Kaustubha, Thanks for your answer. I want to learn more about these advance features in code generation. If you can suggest some good examples or documentation for the same.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by