Images of Simulink blocks
Show older comments
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
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
Ivan Stankovic
on 14 Feb 2013
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
on 14 Feb 2013
Categories
Find more on Programmatic 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!