柚子的各种功能脚本

Version 1.0.2 (2,96 MB) von MBD柚子
存放知乎介绍的各种功能脚本
4 Downloads
Aktualisiert 30. Dez 2025

Lizenz anzeigen

buildResPipeline.m
说明:基于模型设计柚子的想法 - 知乎 https://www.zhihu.com/pin/1989419490543423817
背景:有时候debug需要查看【大量】临时信号,比如N排管路的流量和温度,为了方便会使用From和goto来传递每一排管路的流体信息,比如把温度流量用mux组成向量输出到From。
问题:如果需要同时查看这N排管路的流量信号,就很麻烦,需要一个一个的用got模块并且选择需要的信号再全部输入到同一个scope对比查看。
分享一个脚本:
在指定子系统中自动生成整齐布局的 From→Selector→Mux→Outport结构,批量配置标签、向量长度和索引,轻松实现多路信号提取与汇总,让繁琐的手工建模自动化!
comment_display_scope.zip
% COMMENT_DISPLAY_SCOPE 注释指定模型中的所有 Display 与 Scope 模块
% 用法:
% comment_display_scope('myModel') % 注释
% comment_display_scope('myModel', 'uncomment') % 取消注释
% 说明:
% - 若模型未打开,函数会尝试加载。
% - 会递归搜索所有层级(包括子系统、模型引用)。
% - 仅对 BlockType 为 'Display' 与 'Scope' 的模块操作。

Zitieren als

MBD柚子 (2026). 柚子的各种功能脚本 (https://de.mathworks.com/matlabcentral/fileexchange/182910), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2026a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!

Scripts/buildResPipeline

Scripts/comment_display_scope

Scripts/comment_display_scope

Version Veröffentlicht Versionshinweise
1.0.2

增加 buildResPipeline.m

1.0.1

改个方便搜索到的名字

1.0.0