MATLAB Answers

do you know the difference between set and set_param

조회 수: 1(최근 30일)
bo peng
bo peng 2021년 5월 14일
답변: Steven Lord 2021년 5월 14일
set
  댓글 수: 1
bo peng
bo peng 2021년 5월 14일
get function can get the parameter of block, get_paramer have the same function, what is the difference of them.
identical, do you know the difference between set and set_param

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

채택된 답변

Steven Lord
Steven Lord 2021년 5월 14일
The set_param function is intended to set parameters of Simulink models and Simulink blocks.
The set function is intended to set properties of certain types of MATLAB objects. Most commonly it is used to set properties of Handle Graphics objects like line handles, axes, and figure windows but class authors can write their classes so users of those classes can interact with them using set and get.
The two functions are not interchangeable as far as I'm aware.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by