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

jahanzaib ahmad
jahanzaib ahmad 2019년 2월 14일
x=rand(10,2);
figure(1)
plot(x(:,1),x(:,2))
figure(2)
plot(x(:,1),x(:,2))
what the problem ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Mark Sherstan
Mark Sherstan 2019년 2월 15일

0 개 추천

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');
Screen Shot 2019-02-14 at 8.28.13 PM.png

카테고리

도움말 센터 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

질문:

2019년 2월 14일

답변:

2019년 2월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by