| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Design Verifier |
| Contents | Index |
| Learn more about Simulink Design Verifier |
[status, newmodel]
= sldvblockreplacement(model)
[status, newmodel]
= sldvblockreplacement(model, options)
[status, newmodel]
= sldvblockreplacement(model, options, showUI)
[status, newmodel] = sldvblockreplacement(model) copies model and replaces specified model blocks and other model components for a Simulink Design Verifier analysis. sldvblockreplacement replaces the blocks of the model according to the block-replacement rules in the model configuration settings. sldvblockreplacement returns a handle to the new model in newmodel. If the operation is successful, sldvblockreplacement returns a status of 1. Otherwise, it returns 0.
[status, newmodel] = sldvblockreplacement(model, options) replaces the blocks of model according to the block replacement rules specified in the sldvoptions object options, and returns a handle to the new model in newmodel.
[status, newmodel] = sldvblockreplacement(model, options, showUI) performs the same tasks as sldvblockreplacement(model, options). If showUI is true, errors appear in the Simulation Diagnostics Viewer. Otherwise, errors appear at the MATLAB command line.
Replace the blocks in sldvdemo_blockreplacement_unsupportedblocks using the block-replacement rules specified in opts:
opts = sldvoptions;
opts.BlockReplacement = 'on'
opts.BlockReplacementRulesList = ...
'<FactoryDefaultRules>, custom_rule_switch';
[status, newmodel] = sldvblockreplacement(...
'sldvdemo_blockreplacement_unsupportedblocks', opts);
![]() | sldv.assume | sldvcompat | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |