matlabcompass罗盘函数的用法

matlabcompass罗盘函数的用法

ID:33741423

大小:95.07 KB

页数:4页

时间:2019-02-28

matlabcompass罗盘函数的用法_第1页
matlabcompass罗盘函数的用法_第2页
matlabcompass罗盘函数的用法_第3页
matlabcompass罗盘函数的用法_第4页
资源描述:

《matlabcompass罗盘函数的用法》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、Matlabcompass函数用法MATLABFunctionReferencecompassPlotarrowsemanatingfromtheorigin画从原点发出的箭头Syntax语法•compass(X,Y)•compass(Z)•compass(…,LineSpec)•h=compass(…)其中xxz都是在笛卡尔直角坐标系中的坐标点,箭头是画在一个圆形的网格里。用法一:compass(X,Y)displaysacompassplothavingnarrows,wherenisthenumberofelementsinXorY.Thelocat

2、ionofthebaseofeacharrowistheorigin.Thelocationofthetipofeacharrowisapointrelativetothebaseanddeterminedby[X(i),Y(i)].X,Y都有一维数组,数组长度都为n,则compass(X,Y)会画出一组从原点出发,指向(x(i),y(i))的箭头,且箭头终点在(x(i),y(i))・当然x,y分别为一个数时,只画一个箭头。Eg:»compass(2,2)300270X=[l1-1-1];Y=

3、011-1

4、;»compass(X,Y)12060303302

5、40300270用法二compass(Z)displaysacompassplothavingnarrows,wherenisthenumberofelementsin乙Thelocationofthebaseofeacharrowistheorigin.Thelocationofthetipofeacharrowisrelativetothebaseasdeterminedbytherealandimaginarycomponentsof乙Thissyntaxisequivalenttocompass(real(Z)Jmag(Z)).当z是复数时,坐标终

6、点横坐标为其实部,纵坐标为其虚部Eg:»a=l+2*ja二1.0+2.0000i»compass(a)120902.5602a150:/30r180/0210330240300270用法三:compass(…,LineSpec)drawsacompassplotusingthelinetype,markersymbol,andcolorspecifiedbyLineSpec.可以用Line的特性参数LineSpec.来设置compass的性质。可以设置的参数有线得类型,符号,颜色SpecifierLineStyle■solidline(default)—d

7、ashedline•dottedlinedash-dotlineLineStyleSpecifiersSpecifierlarkerType+plussign0circle拿asterisk•pointXcrossssquareddiamondupwardpointingtriangleVdownwardpointingtriangle>rightpointingtriangle

8、sSpecifierColorrredggreenbblueccyanmagentayyellowkblack■whiteColorSpecifiersEg:»compass(a/r,):10330240300270»compass(a/+f)50;1012060240210530030330270»compass(l,2/—')12030150330210240300

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。