一个可恶的问题

一个困扰我好几天的问题,

当使用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','加密后图像'))

问题解决。

看来不要总要baidu搜索中文的,虽然这个更新快,可是质量有限呀!

你可能感兴趣的:(thread,Gmail)