Display the same image in two figures
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a problem with gui the image displayed in the first Figure but the same image is not displayed in the figure after it
1 Commento
jahanzaib ahmad
il 14 Feb 2019
x=rand(10,2);
figure(1)
plot(x(:,1),x(:,2))
figure(2)
plot(x(:,1),x(:,2))
what the problem ?
Risposte (1)
Mark Sherstan
il 15 Feb 2019
You must have a figure or some variables saved which is affecting your output. Add the two lines at the start of your code to see if the problem persists. The following code gave me results shown below.
clear all
close all
x=rand(10,2);
figure(1)
plot(x(:,1),x(:,2)); title('Figure 1');
figure(2)
plot(x(:,1),x(:,2)); title('Figure 2');
0 Commenti
Vedere anche
Categorie
Scopri di più su Visual Exploration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!