声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1042|回复: 2

[绘图技巧] 非常奇怪的现象,还请给位帮忙。

[复制链接]
发表于 2009-4-11 22:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
最近重装了下系统,matlab 是 2008b 以前一直没遇到这种情况,但是这次重装后出现了这种很奇怪的问题
我画了个很简单的图
比如   x=1:10000; plot(x,sin(0.001*x))
得到图后,我用编辑功能修改x轴坐标的范围的时侯就会出现下面图中错误
TT.JPG
试过几次后发现x轴的数值如图中写成50,000这种三位数字加个逗号的形式的时候就会出错

如果直接修改成50000这种没有逗号的形式就不会出错,但是麻烦的是matlab默认的是50,000 这种形式的,就算改成50000没有逗号的,一回车matlab就还是变成50,000有逗号的形式的。然后就会出错。

另一台电脑上我也装了同一版本的matlab 默认的是50000这种没有逗号的形式,所以不会出错。同一个matlab装出来的怎么会不一样。 已经重装了好几次,没有解决。
还请各位高手帮忙看看,是不是有什么地方可以设置一下的。

[ 本帖最后由 ChaChing 于 2009-4-11 23:33 编辑 ]
回复
分享到:

使用道具 举报

 楼主| 发表于 2009-4-12 13:55 | 显示全部楼层
没有人遇到过这种情况吗?另外一个机器上的 正常的matlab 2008b 的数值是没有逗号形式的 直接是 50000


  2.jpg

[ 本帖最后由 lacad 于 2009-4-12 13:59 编辑 ]
 楼主| 发表于 2009-4-13 13:16 | 显示全部楼层
终于搞定了 这是2008b的一个bug 可以这样修复
2. At the command prompt type: matlabroot. This displays the path to MATLAB root. Write down the path.
3. Exit MATLAB
4. Navigate to the matlab root directory and then to java directory within it.
5. If there is no directory called patch under the java directory, create one there.
6. Navigate to the directory called patch
7. Create the following directory under the patch directory : com\mathworks\page\plottool\propertyeditor\controls (on Windows) or com/mathworks/page/plottool/propertyeditor/controls (on Unix and Mac)
8. Copy the following three files (attached) to the newly created controls directory:
LimitsControl$1.class
LimitsControl$TextControlTransferHandler.class
LimitsControl.class
9. Restart MATLAB.

希望以后碰到的可以不用像我这样重装好多遍还是没用了

评分

2

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-20 11:01 , Processed in 0.075417 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表