Access Data of Another GUI FIg in Matlab

Although matlab GUI is simple, we may still need multiple windows in one app. How to access data of another window is a problem. I searched a lot and encountered this post, http://blinkdagger.com/matlab/matlab-gui-how-to-easily-share-data-between-two-separate-guis/

This post shows a simple yet efficient way to do so. However, not perfect. The code will activate the other window when acquiring the handle of window (put it on the top). So, I suggest a way. Let’s use parent window and child window to describe the two window according to which one opens the other.  Thus, one can keep the child window’s handle in the parent window at the first time of open child window, and at the same time, put parent window’s handle inside the child window so that the child window can access the parent window.

Here, I don’t show the code because I haven’t tried. Anyone tested could send me an example. I will put it here :)

Comments(0)

How to show Image on GUI in matlab

  1. Add an “Axes” control on GUI. Change its tag to “axes_img”.  %% Tag in matlab GUI programming is used as function of name.
  2. Change property of "Axes” visible to “off” to avoid it appearing like an axes in the GUI before image is loaded.
  3. In some functions, like a button clicked, add code similar as below
    axes(handles.axes_img); % use the axes you put on GUI
    imshow('filename'); % display the image

Then an image is loaded where you put the axes control when you click the button.

Comments(0)

只能远离CN域名

CN域名, 从一开放到现在, 从来没有消停过.
开始, 随意注册, 后来1元注册风暴(为了达到一定用户量), 一下子多了n多垃圾站. 导致国际上很多邮件系统都将cn后缀的作为spam的高概率对待.
接下来, 最近, 又出台了, 取消了个人注册资格. 据说已经注册的, 都要补交企业的营业证明等, 那么之前的个人站点居然就这么的就要关闭了.
太牛B了. 这种匪夷所思的事情, 也只有在天朝才能发生.
我觉的, 干脆国家就出台个法律, 所有cn域名均归国家所有, 所有其他企业法人或者个人(现在个人是不可能了)只享有使用权. 就像土地一样, 国家借给你用的, 那么说征收就征收了, 容不得半点商量.
但好歹, 征收土地, 一亩还补贴的若干银子的. 这域名现在确是无条件征收的啊.
之前williamlong.info上三番五次的提醒广大善良的劳动人民远离CN域名, 实在是真知灼见啊.
咱最早的时候抢注的cn域名看来迟早要上缴了. 真是躲得过初一躲不过十五啊.
前不久, 我已经成功的将我最后最后一个在国内的com域名转到的godaddy. 如果这个cn再被征了的话, 我就完全的放弃国内的域名注册商了.
最后, 已经注册cn域名的朋友, 现在就等着征收吧; 没注册的朋友, 推荐直接在国外注册com域名. 别在国内扯了.

update:  9/1/2010, cn域名居然还涨价了, 88块续费! tnnd

Comments(0)