Compare and merge two Simulink models

版本 1.4.0.0 (3.5 KB) 作者: Carl Osterwisch
Visualize and optionally merge differences between two Simulink models.
336.0 次下载
更新时间 2024/4/14

This is a simple tool to help visualize and merge differences between two Simulink models. I am unaware of other non-commercial tools to accomplish this task.
UNIQUE = mergeDiff(OLDMODEL, NEWMODEL{, MERGE=false}) compares block names and dialog parameters from two similar models. The differences are reported in a format similar to the unified diff format.
If MERGE=true then OLDMODEL will be updated with parameter values and missing blocks from NEWMODEL. The merged model requires manual editing to complete the merge process. The modified blocks in the merged model are color coded upon completion. This function does not examine connecting lines so the user should review and connect these colored blocks manually to complete the merge.
White - Block is unchanged
Green - Block was missing from OLDMODEL and was copied from NEWMODEL
Orange - Block's parameters were updated
Red - Block is missing from NEWMODEL
Yellow - Subsystem contains modifications

This function does not examine connecting lines. The user should review and connect these colored blocks manually to complete the merge.

Returns UNIQUE names of blocks found only in OLDMODEL.

EXAMPLE
% List differences between two Simulink models:
open_system('oldmodel');
open_system('newmodel');
mergeDiff('oldmodel', 'newmodel');

引用格式

Carl Osterwisch (2024). Compare and merge two Simulink models (https://github.com/costerwi/simulink-mergeDiff), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Verification, Validation, and Test 的更多信息

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.4.0.0

Updated description

1.3.0.0

Updated description

1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库