MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   计算机视觉/图像处理 (https://www.labfans.com/bbs/forumdisplay.php?f=67)
-   -   [问题] 关于一个焦点丢失的问题~~~ (https://www.labfans.com/bbs/showthread.php?t=11729)

qiuyan9900 2010-06-10 21:37

关于一个焦点丢失的问题~~~
 
我用MATLAB7.0以上的版本画了个GUI界面。在第一次运行界面时,系统都能正常运行的,但是,当我换过数据之后会丢失焦点!!!求牛人帮忙找下原因:)谢谢了

第一次运行
hf =

190.0010


x =

Columns 1 through 12

1.0000 0.9969 0.9877 0.9724 0.9511 0.9239 0.8910 0.8526 0.8090 0.7604 0.7071 0.6494

Columns 13 through 24

0.5878 0.5225 0.4540 0.3827 0.3090 0.2334 0.1564 0.0785 0.0000 -0.0785 -0.1564 -0.2334

Columns 25 through 36

-0.3090 -0.3827 -0.4540 -0.5225 -0.5878 -0.6494 -0.7071 -0.7604 -0.8090 -0.8526 -0.8910 -0.9239

Columns 37 through 48

-0.9511 -0.9724 -0.9877 -0.9969 -1.0000 -0.9969 -0.9877 -0.9724 -0.9511 -0.9239 -0.8910 -0.8526

Columns 49 through 60

-0.8090 -0.7604 -0.7071 -0.6494 -0.5878 -0.5225 -0.4540 -0.3827 -0.3090 -0.2334 -0.1564 -0.0785

Columns 61 through 72

-0.0000 0.0785 0.1564 0.2334 0.3090 0.3827 0.4540 0.5225 0.5878 0.6494 0.7071 0.7604

Columns 73 through 84

0.8090 0.8526 0.8910 0.9239 0.9511 0.9724 0.9877 0.9969 1.0000 0.9969 0.9877 0.9724

Columns 85 through 96

0.9511 0.9239 0.8910 0.8526 0.8090 0.7604 0.7071 0.6494 0.5878 0.5225 0.4540 0.3827

Columns 97 through 101

0.3090 0.2334 0.1564 0.0785 0.0000

第二次运行
hf =

190.0010


x =

Columns 1 through 20

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Columns 21 through 40

1 1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Columns 41 through 60

-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Columns 61 through 80

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Columns 81 through 100

1 1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Column 101

-1

??? Error using ==> axes
Invalid object handle.

Error in ==> plot_modulate at 37
axes(h_axes2);

??? Error while evaluating uicontrol Callback.

>>

yfl 2010-06-11 07:21

回复: 关于一个焦点丢失的问题~~~
 
数据是没有问题的,貌似是你那个句柄调用有错误啊

qiuyan9900 2010-06-11 18:20

回复: 关于一个焦点丢失的问题~~~
 
请问:MATLAB7.0以上版本是不是只能用handle调用而不能用findobj调用
谢谢了!!!:D

yfl 2010-06-11 18:50

回复: 关于一个焦点丢失的问题~~~
 
这个还真不知道,不过一般都用handles吧

qiuyan9900 2010-06-11 19:23

回复: 关于一个焦点丢失的问题~~~
 

谢谢了~~~
我用handles去试试看

qiuyan9900 2010-06-16 16:37

回复: 关于一个焦点丢失的问题~~~
 
我知道原因了~~~~
出现错误是因为我在重新打开前没清空图形句柄


所有时间均为北京时间。现在的时间是 21:19

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.