matlab画函数图function r=funr(t)Hs=[0.490.991.491.992.492.993.493.994.494.995.495.99];P=[0.11578842 0.38326167 0.60983902 0.76612339 0.86081392 0.92500750 0.96370363 0.99130087 0.99660034 0.99870013 0.99970003 0.99990001 ];x=log10(Hs-t);y=log10(-
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 15:15:15
matlab画函数图function r=funr(t)Hs=[0.490.991.491.992.492.993.493.994.494.995.495.99];P=[0.11578842 0.38326167 0.60983902 0.76612339 0.86081392 0.92500750 0.96370363 0.99130087 0.99660034 0.99870013 0.99970003 0.99990001 ];x=log10(Hs-t);y=log10(-
matlab画函数图
function r=funr(t)
Hs=[0.49
0.99
1.49
1.99
2.49
2.99
3.49
3.99
4.49
4.99
5.49
5.99
];
P=[0.11578842
0.38326167
0.60983902
0.76612339
0.86081392
0.92500750
0.96370363
0.99130087
0.99660034
0.99870013
0.99970003
0.99990001
];
x=log10(Hs-t);
y=log10(-log(1-P));
p=polyfit(x,y,1);
y1=polyval(p,x);
r=sum((y-y1).^2);
这个函数怎么画
matlab画函数图function r=funr(t)Hs=[0.490.991.491.992.492.993.493.994.494.995.495.99];P=[0.11578842 0.38326167 0.60983902 0.76612339 0.86081392 0.92500750 0.96370363 0.99130087 0.99660034 0.99870013 0.99970003 0.99990001 ];x=log10(Hs-t);y=log10(-
你想画那两个量之间的图像啊?