MATLAB Answers

do you know the difference between set and set_param

2 views (last 30 days)
bo peng
bo peng on 14 May 2021
Answered: Steven Lord on 14 May 2021
set
  1 Comment
bo peng
bo peng on 14 May 2021
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

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 14 May 2021
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!