声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1510|回复: 2

[绘图技巧] 错在哪里了呢

[复制链接]
发表于 2007-4-10 10:20 | 显示全部楼层 |阅读模式

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

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

x
输入:h = ezplot('((x-2950)/372.1)^2+(((y-385)/67.9)^2)-1',[0,4000,0,2000]);
set( h, 'linestyle', '--' );
set(gca,'xlim',[0,4000])          % 设置标尺的范围
x=0:100:4000;                     % 标度的数值
set(gca,'xtick',x);  
set(gca,'xdir','reverse');
set(gca,'xaxislocation','top');
set(gca,'ylim',[0,2000])                     
y=0:100:2000;
set(gca,'ytick',y);
set(gca,'ydir','reverse');
set(gca,'yaxislocation','right'); %坐标轴的位置
提示:
??? Error using ==> ezplot
Too many output arguments.
回复
分享到:

使用道具 举报

 楼主| 发表于 2007-4-10 10:42 | 显示全部楼层

Re: 错在哪里呢 (知道错在哪了,我装的是6.5 )

我装的是6.5,不能那样用:
正确:
ezplot('((x-2950)/372.1)^2+(((y-385)/67.9)^2)-1',[0,4000,0,2000]);
h = findobj(gca);
set(h,'linestyle','-.');
set( h, 'linestyle', '--' );
set(gca,'xlim',[0,4000])          % 设置标尺的范围
x=0:100:4000;                     % 标度的数值
set(gca,'xtick',x);  
set(gca,'xdir','reverse');
set(gca,'xaxislocation','top');
set(gca,'ylim',[0,2000])                     
y=0:100:2000;
set(gca,'ytick',y);
set(gca,'ydir','reverse');
set(gca,'yaxislocation','right'); %坐标轴的位置

评分

2

查看全部评分

发表于 2007-4-10 10:47 | 显示全部楼层
原帖由 risefei 于 2007-4-10 10:42 发表
我装的是6.5,不能那样用:
正确:
ezplot('((x-2950)/372.1)^2+(((y-385)/67.9)^2)-1',);
h = findobj(gca);
set(h,'linestyle','-.');
set( h, 'linestyle', '--' );
set(gca,'xlim',)          % 设置 ...



装个新版本的matlab吧,matlab6.5 --> 7.0 --> 7.1 --> 2006a (7.2) --> 2006b (7.3) --> 2007a (?) ,很多新版本了,呵呵
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-24 21:28 , Processed in 0.059371 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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