![]() |
怎样用命令进行smoothing spline fit?
小弟初涉MATLAB,有一组曲线,用cftool操作进行了 smoothing spline fit,效果不错。但是我无法找到输入命令去进行此处理(即在M-file 或命令窗口里的操作指令)。
望诸位大神多多赐教!不甚感激! |
回复: 怎样用命令进行smoothing spline fit?
x=1:10;
y=rand(1,10); plot(x,y,'o') xx=1:.1:10; yy=spline(x,y,xx); hold on plot(xx,yy) |
回复: 怎样用命令进行smoothing spline fit?
谢谢你的回复!不过我的X的值是Vector,用这种方法无效。你有其他的建议吗?
程序如下: R=imread('D:\Matlab 2010\work\180.bmp'); R1=rgb2gray(R); R2=double(R1); [m,n]=size(R2); x=1:1:n; y=1:1:m; [X,Y]=meshgrid(x,y); R3=min(R2); R4=60-R3; plot(X,R4) 就是将此曲线拟合,图片我就不附了。 |
所有时间均为北京时间。现在的时间是 11:33。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.