x=[0.22, 0.26, 0.30, 0.35, 0.40, 0.45, 0.50, 0.55, 0.60, 0.65, 0.70]; y=[60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160];

% 绘制散点图 scatter(x,y,'filled'); xlabel('熔钢完毕碳含量'); ylabel('精炼时间(min)'); title('炼钢生产记录');

% 计算相关系数 r=corrcoef(x,y); disp(['相关系数为:',num2str(r(1,2))]);

炼钢时间与碳含量的关系分析 - Matlab代码示例

原文地址: https://www.cveoy.top/t/topic/oAlW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录