필터 지우기
필터 지우기

Change 'Gain parameter' value of Gain block in Model

조회 수: 2 (최근 30일)
Abhijeet Kate
Abhijeet Kate 2023년 12월 4일
댓글: madhan ravi 2023년 12월 4일
Hello,
I want to change gain parameter externally.
Is there any option where we can use 'Data memory write' or 'Constant' block as input for the purpose.
Any other option is also appreciated.
Thank you.
  댓글 수: 1
Paul
Paul 2023년 12월 4일
Depends on what "externally" means.
Do you want to change the gain parameter while the simulation is running? If so, what it is the source of the value to which the parameter should be changed?
Or, do you want to change the gain parameter to a value before the simulation runs and have it stay at that value for the entirety of the simulation?

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

채택된 답변

madhan ravi
madhan ravi 2023년 12월 4일
Sure, just use a Mask to change the Gain Value.
  댓글 수: 5
Abhijeet Kate
Abhijeet Kate 2023년 12월 4일
I am getting following error
Is there any other way?
madhan ravi
madhan ravi 2023년 12월 4일
Abhijeet, I know it is frustrating when you learn sommething new. But take your time, plan what you want to do and then explain your use case with an example. There is always a solution but one must be also clear on what they want. Read Paul's comment and reply accordingly.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by