MATLAB Answers

what is block arguments about handle meaing?

1 view (last 30 days)
mr. wang
mr. wang on 23 Mar 2017
Edited: Monika Jaskolka on 28 Mar 2020
bb=get_param('test/Gain','handle')
when i run this program,it returns bb=9.0002,what does that mean?

  0 Comments

Sign in to comment.

Answers (1)

Monika Jaskolka
Monika Jaskolka on 28 Mar 2020
Edited: Monika Jaskolka on 28 Mar 2020
Each block, line, annotation, etc. in a Simulink model has a unique numeric identifier. It's called a "handle". You can use the handle to refer to that specific block, for example:
set_param(bb, 'Gain', '2')

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by