Figure to Simulink subsystem mask icon converter

버전 1.0.0.0 (2.75 KB) 작성자: Paul
Creates a mask icon for a Simulink subsystem from a given figure.
다운로드 수: 719
업데이트 날짜: 2010/7/13

라이선스 보기

Creates a mask icon for a Simulink subsystem from a given figure. This subsystem is masked with a ICON correspoding to lines in the figure. This is useful to illustrate the behaviour of the subsystem by a icon.

You can use the simplot command to create it from the actual output. See the documentation of simplot (doc simplot) for further info.

FUNCTION:
function fig2simulinkmaskicon(hFig,colors)

INPUTS:
hFig - handle to a figure to be used (e.g. gcf)
colors - (OPTIONAL) colors for different lines.

Supported (default) colors: blue, red, green, magenta, yellow, cyan, black

OUTPUTS:
Creates a simulink subsystem with a given mask
Prints out the Mask/Icon string in the command window.

Example:
h = figure; hold on;
plot([0:0.1:10],sin([0:0.1:10]));
plot([0:0.5:12],cos([0:0.5:12]));
fig2simulinkmaskicon(gcf);
fig2simulinkmaskicon(gcf,'yellow');
fig2simulinkmaskicon(gcf,{'red','magenta'});

인용 양식

Paul (2024). Figure to Simulink subsystem mask icon converter (https://www.mathworks.com/matlabcentral/fileexchange/28198-figure-to-simulink-subsystem-mask-icon-converter), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP3
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0