when I recalled the switch function, it always gave the first element, no matter what the parameter is.

r-29-dev

when organism changed to “yeast”, and called switch function, species supposed to be changed to “Sc”, but it remains it’s original value.

Continue reading

三维绘图可以分为两大类型:矩阵型和曲面型。

矩阵型

通常是声明一个矩阵,以矩阵的长宽为x,y范围,以矩阵里面的数值为高z, 使用plot3d(t1,t2,Z,alpha=a,theta=b)

  • t1:y轴方向的范围
  • t2:x轴方向的范围
  • Z:矩阵
  • alpha
  • theta参数用于指定角度,让图绘出来以某个特定的角度呈现出来。(optional)
->clear ->A=[1 2 5 4 3;0 3 2 8 6;2 4 6 7 5;2 3 4 3 1];
->t1=1:4; ->t2=1:5;
//plot3d1与plot3d语法类似,能够嵌入多种颜色
->plot3d(t1,t2,A,alpha=45,theta=45);

mesh不需要边界声明, ->mesh(A);

Continue reading

Author's picture

Guangchuang Yu

Bioinformatics Professor @ SMU

Bioinformatics Professor

Guangzhou