Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 其它 > 资料存档 > MATLAB技术文章
MATLAB技术文章 MATLAB Technical Articles From Mathworks
回复
 
主题工具 显示模式
旧 2023-06-29, 05:01   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
默认 MiniGallery, Sampler of MATLAB Test Matrices - Cleve Moler on Mathematics and Computing

MATLAB has dozens of test matrices. Here are a few.

Contents


MiniGallery
  • Random. A = sprand(n,n,0.25). Random sparse, density = 0.25.
  • Bucky. A = bucky. Sparse connectivity graph of the geodesic dome, the soccer ball, and the carbon-60 molecule.
  • Wilkinson. A = wilkinson(n). Wn+. Nearly equal double eigenvalues.
  • Band. A = triu(tril(A,2),-2). Elements near diagonal.
  • Triangular. A = triu(A). Elements on and above diagonal.
  • Hessenberg. A = triu(A,-1). Upper triangular plus one subdiagonal. See schur.
  • Permutation. A = sparse(randperm(n),1:n,1). One +1 in each row and column.
  • Companion. c = charpoly(A); A = [-c(2:end); eye(n-1,n)]. Traditional companion matrix.
  • Fiedler. c = charpoly(A); A = fiedler(-c(2:end)). Fiedler companion matrix.
  • Hankel. A = flip(gallery('toeppd',n)). Constant antidiagonals.
  • Toeplitz. A = gallery('toeppd',n). Constant diagonals.
  • Magic. A = magic(n). Magic square.
Collections
Blogs
Software

Get the MATLAB code (requires JavaScript)

Published with MATLAB® R2023a




More...
poster 当前离线   回复时引用此帖
回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛启用 HTML 代码



所有时间均为北京时间。现在的时间是 04:47


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.