- 14
- 0
- 约9.65千字
- 约 8页
- 2017-01-05 发布于贵州
- 举报
5数值计算功能5数值计算功能
clear;close;clc;A=[1 2 3;4 5 6]A = 1 2 3 4 5 6 A=[1:3;4:6]A = 1 2 3 4 5 6A=zeros(2,3)A = 0 0 0 0 0 0A=eye(3,3)A = 1 0 0 0 1 0 0 0 1C=hadamard(4)C = 1 1 1 1 1 -1 1 -1 1 1 -1 -1 1 -1 -1 1helptoeplitzTOEPLITZ Toeplitz matrix. TOEPLITZ(C,R) is a non-symmetric Toeplitz matrix having C as itsfirst column and R as its first row. TOEPLITZ(R) is a symmetric Toeplitz matrix for real R. For a complex vector R with a real first element, T = toeplitz(r) returns the HermitianToeplitz matrix formed from R. When the first element of R is not real, the resulting matrix is Hermitianoff the main diagonal, i.e., T_{i,j} = conj(T_{j,i}) for i ~= j. Class support for inputs C,R:float: double, single See also HANKEL. Overloaded methods:sdpvar/toeplitzncvar/toeplitzA=[1 2 3];B=4:6;C1=cat(1,A,B)C1 = 1 2 3 4 5 6C2=cat(2,A,B)C2 = 1 2 3 4 5 6C3=cat(3,A,B)C3(:,:,1) = 1 2 3C3(:,:,2) = 4 5 6horzcat(A,B)ans = 1 2 3 4 5 6vertcat(A,B)ans = 1 2 3 4 5 6A=1:9;A=reshape(A,3,3)A = 1 2 3 4 5 6 7 8 9A(2,3)ans = 6A(8)ans = 6B=A(1:2,:)B = 1 2 3 4 5 6A(:,[1 2])=[]A = 3 6 9C=reshape(B,1,6)C = 1 4 2 5 3 6A*C(1:3)ans = 3 12 6 6 24 12 9 36 18Cans = 1 4 2 5 3 6x=sdpvar(1,3)%f=[2 -2 3]*xf=2*x(1)-2*x(2)+3*x(3)F=set(x(1)=0)+set(x(2)=0)%F=F+set([-1 1 1]*x=4)+set([-1 1 1]*x=4)+set([-2 1 -1]*x=6)F=F+set([-1 1 1]*x==4)+set([-2 1 -1]*x=6)solvesdp(F,f)double(f)double(x)Linear matrix variable 1x3 (full, real, 3 variables)Linear scalar (real, 3 variables)+++++++++++++++++++++++++++++++++++++++++++++++++++++++| ID| Constraint| Type|+++++
您可能关注的文档
- 3 英语-2015届高三上学期期中考试英语试题3 英语-2015届高三上学期期中考试英语试题.doc
- 3 检查表范本3 检查表范本.doc
- 3 英语-扬州中学2015学年高三阶段检测英语3 英语-扬州中学2015学年高三阶段检测英语.doc
- 3 餐饮企业网上订餐和电子菜单运营系统3 餐饮企业网上订餐和电子菜单运营系统.doc
- 3 英语-扬州市2014-2015学年高一上学期末考试 英语3 英语-扬州市2014-2015学年高一上学期末考试 英语.doc
- 3-3 establishing a joint venture3-3 establishing a joint venture.doc
- 3-水泥部安全生产管理目标责任书3-水泥部安全生产管理目标责任书.doc
- 3-用友T3操作手册3-用友T3操作手册.doc
- 3-Goods Move. People Move.3-Goods Move. People Move..doc
- 3-英语月考试卷3-英语月考试卷.doc
最近下载
- 2025-2026学年湘美版(新教材)小学美术三年级下册(全册)教学设计(附目录P128).docx
- 生活饮用水中总α 总β放射性 方法验证.doc VIP
- 第八节 输尿管损伤护理常规.pptx
- 新版FMEA表单模板(DFMEA和PFMEA)案例.xlsx VIP
- 肺部肿瘤PPT课件.pptx VIP
- 普通高中英语课程标准(2017年版-2020年修订)词汇表.docx VIP
- 死亡否认=THE DENIAL OF DEATH_13854410.pdf
- 英威腾(INVT)Goodrive10系列迷你型变频器中文产品说明书.pdf
- 水利工程设计概(估)算编制规定【水总[2014]429号】.pdf VIP
- ISO 14001-2026《环境管理体系 要求和使用指南》内容变化及应对措施(雷泽佳编制-2026A0).pdf VIP
原创力文档

文档评论(0)