科学网

 找回密码
  注册
matlab线性拟合
热度 1 张瑞龙 2014-8-16 20:55
Y=kx+b; 形式的线性拟合(基于最小二乘法) 方法一: x= ; y= ; p= polyfit (x,y,1); x1=linspace(min(x),max(x)); y1=polyval(p,x1); plot(x,y,'*',x1,y1); % 将两个图画到一块 结果: p = 1.0200 0.0400 即 y=1.0200 *x+0.0400 ...
个人分类: matlab|42686 次阅读|1 个评论 热度 1
matlab中text函数的用法
张瑞龙 2014-8-16 20:22
text(x,y,'string') 在图形中指定的位置 (x,y) 上显示字符串 string. text(x,y,z, ’ string ’ .'PropertyName',PropertyValue „ ) 对引号中的文字 string 定位于用坐标轴指定的位置,且对指定的 属性进行设置。 例: x = –4:0.2:4; y = sin(x); ...
个人分类: matlab|83738 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-11 06:55

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部