Cropping Images on Simulink Blocks
Versión 1.1.0.1 (13,1 KB) por
Stacey Gage
Example of displaying and reducing an image on a Simulink block.
Image file can be used as an icon on a Simulink block. In this example, the image is reduced to a size such that the I/O names can still be seen.
To see how this is done:
-Open the model
-Edit block mask
-Go to icon drawing commands
"image(imread('magic.jpg'),[.2, .2, .6, .6],'on')"
with normalized drawing coordinates
makes this possible
Citar como
Stacey Gage (2025). Cropping Images on Simulink Blocks (https://www.mathworks.com/matlabcentral/fileexchange/3484-cropping-images-on-simulink-blocks), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R11
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Author Block Masks en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.