声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 958|回复: 3

[编程技巧] 请教set命令

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

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

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

x
set(2,'position',[100,100,1000,600])中这是什么意思,高手指点指点,谢谢
回复
分享到:

使用道具 举报

发表于 2009-4-3 07:54 | 显示全部楼层
from matlab help:
Figure position. This property specifies the size and location on the screen of the figure window.
or
Position of axes. A four-element vector specifying a rectangle that locates the axes within the figure window. The vector is of the form: [left bottom width height]
where left and bottom define the distance from the lower-left corner of the figure window to the lower-left corner of the rectangle. width and height are the dimensions of the rectangle. All measurements are in units specified by the Units property.
When axes stretch-to-fill behavior is enabled (when DataAspectRatioMode, PlotBoxAspectRatioMode, CameraViewAngleMode are all auto), the axes are stretched to fill the Position rectangle. When stretch-to-fill is disabled, the axes are made as large as possible, while obeying all other properties, without extending outside the Position rectangle

[ 本帖最后由 ChaChing 于 2009-4-3 07:57 编辑 ]
 楼主| 发表于 2009-4-3 17:12 | 显示全部楼层

请教程序中的问题

[U,S,V]=svd(P(:,:,round(f*1024/2000)+1));  
            Ph=180*(abs(angle(U(:,1)))-pi/2)/pi;
            disp(Ph');
            Md=abs(U(:,1)).*sign(Ph);
            Md=Md/max(abs(Md));
            figure(3)
            fig=3;
            hold on
            whitebg(3,'k')                           
            set(3,'position',[200,100,1000,300])
            plot(Md,'y','linewidth',8)
            plot([0,1],[0,0],'w')
            axis([0,1,-1.2,1.2])

Md=abs(U(:,1)).*sign(Ph);中“.*”是什么意思?
set(3,'position',[200,100,1000,300])中,括号里面的各个量代表什么?
谢谢
发表于 2009-4-3 18:58 | 显示全部楼层

回复 楼主 huazi071783 的帖子

Help .*
set设定figure的位置大小!

[ 本帖最后由 ChaChing 于 2009-4-3 19:02 编辑 ]
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-22 17:25 , Processed in 0.070394 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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