Cropping Images on Simulink Blocks

Example of displaying and reducing an image on a Simulink block.
3,3K téléchargements
Mise à jour 1 sept. 2016

Afficher la licence

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

Citation pour cette source

Stacey Gage (2024). Cropping Images on Simulink Blocks (https://www.mathworks.com/matlabcentral/fileexchange/3484-cropping-images-on-simulink-blocks), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R11
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Author Block Masks dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0.1

Updated license

1.1.0.0

updated jpg used in Simulink model

1.0.0.0