simulink add_block fails for 'built-in/Transfer Fcn'

조회 수: 4 (최근 30일)
Stephen Yutkowitz
Stephen Yutkowitz 2017년 6월 28일
답변: Swarooph 2017년 6월 28일
simulink add_block fails for 'built-in/Transfer Fcn' is it because of the white space?

답변 (1개)

Swarooph
Swarooph 2017년 6월 28일
Using block names like 'Transfer Fcn' works only if you use the full block path as follows:
add_block('simulink/Continuous/Transfer Fcn', 'untitled/Transfer Fcn')
Otherwise, you can use 'built-in/blocktype' as a source block path name for Simulink built-in blocks, where blocktype is the built-in block type (that is, the value of its BlockType parameter (see Common Block Properties). However, using 'built-in/blocktype' causes some default parameter values of some blocks to be different from the defaults that you get if you added those blocks interactively using Simulink.
add_block('built-in/TransferFcn', 'untitled/Transfer Fcn1')
More on the documentation here.

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by