Howto insert image in guide in red area ?

1 visualizzazione (ultimi 30 giorni)
Adisorn Phanukthong
Adisorn Phanukthong il 26 Set 2017
Commentato: Walter Roberson il 26 Set 2017

Risposte (1)

Walter Roberson
Walter Roberson il 26 Set 2017
Create an axes that is positioned there. Set the axes Visible property off. imshow() or image() an image into place.
  2 Commenti
Walter Roberson
Walter Roberson il 26 Set 2017
fig = gcf;
ax = axes('Parent', fig, 'Units', 'normal', 'Position', [.05 0.75 .25 0.40]);
TheImage = imread('cameraman.tif');
image(TheImage, 'Parent', ax);
colormap(ax, gray(256));
axis(ax, 'image');

Accedi per commentare.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by