| 查看: 497 | 回复: 2 | |||
zajage金虫 (著名写手)
|
[求助]
请高手看看:这个MATLAB程序那里不妥?
|
|
从书上抄的程序,在软件上不能运行求指点!(书上也有不对的??) >> t = 1900:10:1990; p = [75.995 91.972 105.711 123.203 131.669... 150.697 179.323 203.212 226.505 249.633]; %使用不同的方法进行插值运算 x = 1900:0.01:1990; yi_linear=interpl(t,p,x); yi_spline=interpl(t,p,x, 'spline'); yi_cubic=interpl(t,p,x, 'cubic'); yi_v5cubic=interpl(t,p,x, 'v5cubic'); %绘制对比图形 subplot(2,1,1); plot(t,p, 'ko');hold on; plot(x,yi_linear, 'g', 'LineWidth',1.5);hold on plot(x,yi_spline,'y', LineWidth',1.5); grid on; title('Linear Vs Splin'); subplot(2,1,2); plot(t,p,'ko');hold on; plot(x,yi_cubic,'m', 'LineWidth',1.5);hold on plot(x,yi_v5cubic,'k',' LineWidth',1); grid on; title('Cubic Vs V5Cubic'); %创建新的图形窗口 figure yi_nearest=interpl(t,p,x, 'nearest'); plot(t,p,ko');hold on; plot(x,yi_nearest,'g', 'LineWidth',1.5);hold on grid on; title('Nearest Method') ??? Undefined function or method 'interpl' for input arguments of type 'double'. |
» 猜你喜欢
职称评审没过,求安慰
已经有56人回复
最近几年招的学生写论文不引自己组发的文章
已经有5人回复
26申博自荐
已经有3人回复
A期刊撤稿
已经有4人回复
» 本主题相关价值贴推荐,对您同样有帮助:
高手进来用matlab求解常微分方程,十分感谢!
已经有17人回复
打算学习Matlab,是看书入门快还是看视频呢
已经有25人回复
帮忙看看这个平面图用matlab怎么画
已经有19人回复
看不懂matlab程序该怎么办?
已经有7人回复
【求助】请各位高手告诉我:这种想法能不能用matlab实现?200金币求助
已经有16人回复
【求助】用matlab编程,需要将数据自检分类(高手进来指点下)
已经有5人回复
【求助】请教一个matlab程序,谢谢帮忙!!
已经有15人回复
【求助】大家看看,matlab安装过程的截图,找出错
已经有14人回复
【求助】大家帮我看看这个MATLAB程序?
已经有6人回复
change0618
铁杆木虫 (著名写手)
方丈大师
- 应助: 44 (小学生)
- 金币: 17724.5
- 红花: 17
- 帖子: 2413
- 在线: 546.7小时
- 虫号: 496517
- 注册: 2008-01-19
- 专业: 化学反应工程
2楼2012-05-24 16:41:31
zajage
金虫 (著名写手)
- 应助: 7 (幼儿园)
- 金币: 4648.5
- 散金: 1
- 红花: 1
- 帖子: 2078
- 在线: 160.1小时
- 虫号: 244937
- 注册: 2006-04-22
- 性别: GG
- 专业: 药剂学
3楼2012-05-24 16:53:36













回复此楼