Images of Simulink blocks

Hello,
is it possible to get the image of a specific Simulink block? For example, I can print the whole model, but I would like to print only a specific block.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 14 Feb 2013
Edited: Azzi Abdelmalek on 14 Feb 2013

0 votes

Click on Edit-copy model to clipboard
Open paint for example then click on past

3 Comments

This would copy the whole model, no? And it would require a user action. What I'm looking for is a way to get the image of a specific block from an M-function.
% Suppose model is your model name
model
print('-smodel','-dbitmap','new_name')
im = imread('new_name.bmp')
% You can then save it as a jpg file
imwrite(im,'filename.jpg')
Thanks, but this will print the whole model whereas I need only a specific block. Sadly, the print command does not accept a path to a block.

Sign in to comment.

Categories

Products

Asked:

on 14 Feb 2013

Community Treasure Hunt

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

Start Hunting!