Main Content

removeBlock

Remove block from list of tuned blocks in slTuner interface

Description

removeBlock(st,blk) removes the specified block from the list of tuned blocks for the slTuner interface, st. You can specify blk to remove either a single or multiple blocks.

removeBlock does not modify the Simulink® model associated with st.

example

Examples

collapse all

Create an slTuner interface for the scdcascade model. Add C1 and C2 as tuned blocks to the interface.

st = slTuner('scdcascade',{'C1','C2'});

Remove C1 from the list of tuned blocks of st.

removeBlock(st,'C1');

Input Arguments

collapse all

Interface for tuning control systems modeled in Simulink, specified as an slTuner interface.

Block to remove from the list of tuned blocks for st, specified as one of the following:

  • Character vector or string — Full block path or any portion of the block path that uniquely identifies the block among the other tuned blocks of st. For example, blk = 'scdcascade/C1'.

  • Cell array of character vectors or string array — Specifies multiple blocks. For example, blk = {'C1','C2'}.

  • Positive integer — Block index. For example, blk = 1.

  • Vector of positive integers — Specifies multiple block indices. For example, blk = [1 2].

To determine the name or index associated with a tuned block, type st. The software displays the contents of st in the MATLAB® command window, including the tuned block names.

More About

collapse all

Version History

Introduced in R2014a