Bonjour

j'aimerais bien afficher ma figure en plein écran

Voici mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
fig=figure('numbertitle','off','name','Matlab');
set(fig, 'Units', 'Normalized', 'outerposition', [0 0 1 1]); %figure en plein écran
%Changer arrière plan de l'application
I = imread('key.png', 'png');  % Charge l'image
ax = axes('Units', 'Normalized', 'Position', [0 0 1 1]);  % Création d'un objet Axes prenant toute la fenêtre
imagesc(I, 'Parent', ax)  % Affiche l'image 
uistack(ax, 'buttom')     % Place l'objet Axes en arrière-plan
set(ax, 'Visible', 'off') %  Cache les marques "ticks"
 
x = linspace(0,0.2,10);
y = sin(x);
plot(x,y,'b');