Images of Simulink blocks

1 view (last 30 days)
Ivan Stankovic
Ivan Stankovic on 14 Feb 2013
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
Click on Edit-copy model to clipboard
Open paint for example then click on past
  3 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 14 Feb 2013
Edited: Azzi Abdelmalek on 14 Feb 2013
% 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')
Ivan Stankovic
Ivan Stankovic on 14 Feb 2013
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

Find more on Interactive Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!