测控软件技术基础周鑫

测控软件技术基础周鑫

ID:38637658

大小:289.50 KB

页数:11页

时间:2019-06-16

测控软件技术基础周鑫_第1页
测控软件技术基础周鑫_第2页
测控软件技术基础周鑫_第3页
测控软件技术基础周鑫_第4页
测控软件技术基础周鑫_第5页
资源描述:

《测控软件技术基础周鑫》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、测控软件技术基础姓名:周鑫班级:232131学号:20131000982指导老师:黄玉金BasicSyntaxandCommand-LineExercises1.Createavectoroftheevenwholenumbersbetween31and75.代码:x=32:2:752.Letx=[2516].a.Add16toeachelementb.Add3tojusttheodd-indexelementsc.Computethesquarerootofeachelementd.Computethesquareofeachelement代码:a=x+16;b=x(1:2:e

2、nd)+3c=sqrt(x)d=x.^25.Createavectorxwiththeelements...代码:a=2:2:20b=10:-2:-4c1=1:5,c2=1./c1,rats(c2)d1=0:4,d2=1:5,d3=d1./d2,rats(d3)6.Createavectorxwiththeelements,xn=(-1)n+1/(2n-1)Adduptheelementsoftheversionofthisvectorthathas100elements.代码:n=1:100;x=((-1).^(n+1))./(2*n-1);y=sum(x)10.Makeago

3、odplot(i.e.,anon-choppyplot)ofthefunctionf(x)=sin(1/x)for0.01

4、.x(1:end)d.x(1:end-1)e.x(6:-2:1)f.x([16211])g.sum(x)答:x(3)表示x行向量中的第三个元素。x(1:7)表示x行向量中第1到7个元素。x(1:end)表示x行向量中第1到最后一个元素。x(1:end-1)表示x行向量中第1到倒数第二个元素。x(6:-2:1)表示x行向量中第6个元素到第1个元素中的偶数项元素。x([16211]):方括号中表示x行向量中元素的序号,整个表示由这些元素组成的新行向量。sum(x):表示x中所有元素求和。2.GiventhearrayA=[241;672;359],providethecommands

5、neededtoa.assignthefirstrowofAtoavectorcalledx1b.assignthelast2rowsofAtoanarraycalledyc.computethesumoverthecolumnsofAd.computethesumovertherowsofAe.computethestandarderrorofthemeanofeachcolumnofA(NB.thestandarderrorofthemeanisdefinedasthestandarddeviationdividedbythesquarerootofthenumberofel

6、ementsusedtocomputethemean.)代码:A=[241;672;359]x1=A(1,:)y=A(end-1:end,:)c=sum(A)d=sum(A,2)N=size(A,1),e=std(A)/sqrt(N)6.GivethefollowingcommandstocreateanarraycalledF:>>randn('seed',123456789)>>F=randn(5,10);a.Computethemeanofeachcolumnandassigntheresultstotheelementsofavectorcalledavg.b.Compu

7、tethestandarddeviationofeachcolumnandassigntheresultstotheelementsofavectorcalleds.c.Computethevectoroft-scoresthattestthehypothesisthatthemeanofeachcolumnisnodifferentfromzero.d.IfPr(

8、t

9、>2.132)=0.1with4degreesoffreedom,areanyofthemeanvaluesi

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

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

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