特殊矩阵的构造方法
1、菱形矩阵的构造:Table[If[Abs[x]+Abs[y]<2,1,0],{x,-2,2,0.2},{y,-2,2,0.2}]

3、Table[If[Abs[x]+Abs[y]<2,1,0],{x,-2,2,0.02},{y,-2,2,0.02}]

5、圆形矩阵的构造:Table[If[x^2+y^2<2,1,0],{x,-2,2,0.5},{y,-2,2,0.5}]

7、椭圆形矩阵:Table[If[x^2+y^2<3,1,0],{x,-2,2,0.2},{y,-2,2,0.1}]

9、Table[If[x^2/2+y^2/3<1,1,0],{x,-2,2,0.02},{y,-2,2,0.02}]

11、Table[If[Sin[x]+Cos[y]<1/2,1,0],{x巳呀屋饔,-3,6,0.2},{y,-5,10,0.2}]


声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:87
阅读量:76
阅读量:28
阅读量:70
阅读量:82