How to extract user entered properties from Simulink Lowpass Filter block?

My colleague has a simulink model ('DataFiltering') which contains a block called 'Lowpass' where the user can enter values for passband frequency and stopband frequency. From the Matlab command line, I would like to extract those user-entered values (for example, 10Hz) and assign them to a variable in the Matlab workspace. I know I need to use get_params to do it, but that returns a list of 182 parameters and none seem to contain the user-entered values. How can I extract the passband and stopband frequency values?

 채택된 답변

@Johannes
@Johannes 2015년 10월 23일
Hello, you can try to extrcat the Dialog Parameters of your Lowpass block. Type the following command in your Matlab Command Window.
p = get_param('DataFiltering/Lowpass','DialogParameters')
This will return a list with the parameters of your choosen block. Now you should find your required parameters and you can directly extract them.
More informations about get_param:
Best Regards, Johannes

댓글 수: 1

Thanks. All a little unfamiliar to a primary Matlab user so I appreciate it!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

태그

질문:

K E
2015년 10월 21일

댓글:

K E
2015년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by