一個困擾我好幾天的問題,
當使用inputdlg得到一個輸入值後,再也無法讓subplot的title應用,隻要一用就出現下标越界的錯誤提示。
如下:
??? Index exceeds matrix dimensions.
Error in ==> myencryption at 75
title('加密後圖像');
搜尋了好久,終于找到,
==============================================
http://www.mathworks.de/matlabcentral/newsreader/view_thread/236453
Found my problem.
set(gca,'Title',text('String','damn software')) adds the title, so on a hunch I check my workspace, and some idiot define title as a variable. I think that was me.
"Judy " <[email protected]> wrote in message <[email protected]>...
> Found it:
> Yep, there was an invisible barrier... titles can't be too close or overlapping other text I assume..
>
> Poo. =======================================================
更改原來的title('加密後圖像');為:
set(gca,'Title',text('String','加密後圖像'))