conn = database('ci_bootstrap_3','root','1q1q1q1q','com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/ci_bootstrap_3');  %数据库连接
ping(conn);  &测试
lung1=exec(conn,'select lung from phytest where lung>0'); 
lung=fetch(lung1);
Y=lung.data

%到这步Y=lung.data会显示出结果为

%[XXX]

%[xxx]

%[xxx]
[Z2]=cell2mat(Y);  %元胞数组

%此时输出结果为 XXX XXX XXX 

%这个时候可以直接做pearson相关系数了

corr(Z1,Z2,'type','pearson')

 

相关文章:

  • 2021-11-20
  • 2021-12-12
  • 2021-12-26
  • 2021-12-30
  • 2021-10-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-09-05
  • 2021-11-19
  • 2022-01-02
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案