matlab怎么画两个函数图像clearclcx=0:0.1:1;a=8.3;y=inline('a*10^(-10)*(0.025+0.975/(1+((1-x)/(1-0.792))^6))','x','a');fy = zeros(length(x),1);for i = 1:length(x)fy(i)=y(x(i),a);endplot(x,fy)另一个clearclcx=0:0.1:1;a=0.1059;b=2.275;y=inline

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 05:28:44
matlab怎么画两个函数图像clearclcx=0:0.1:1;a=8.3;y=inline(''a*10^(-10)*(0.025+0.975/(1+((1-x)/(1-0.792))^6))'',''

matlab怎么画两个函数图像clearclcx=0:0.1:1;a=8.3;y=inline('a*10^(-10)*(0.025+0.975/(1+((1-x)/(1-0.792))^6))','x','a');fy = zeros(length(x),1);for i = 1:length(x)fy(i)=y(x(i),a);endplot(x,fy)另一个clearclcx=0:0.1:1;a=0.1059;b=2.275;y=inline
matlab怎么画两个函数图像
clear
clc
x=0:0.1:1;
a=8.3;
y=inline('a*10^(-10)*(0.025+0.975/(1+((1-x)/(1-0.792))^6))','x','a');
fy = zeros(length(x),1);
for i = 1:length(x)
fy(i)=y(x(i),a);
end
plot(x,fy)
另一个
clear
clc
x=0:0.1:1;
a=0.1059;
b=2.275;
y=inline('1.455*10^(3)/a/(1-x)/(log(1-x))^2*(3.148*10^(-15)*(1-x)^(10/3)*a^(2.7)+3*10^(-15)*x^(0.5)*(1-(1-x^b)^(1/b))*(2))','x','a','b');
fy = zeros(length(x),1);
for i = 1:length(x)
fy(i)=y(x(i),a,b);
end
plot(x,fy)

matlab怎么画两个函数图像clearclcx=0:0.1:1;a=8.3;y=inline('a*10^(-10)*(0.025+0.975/(1+((1-x)/(1-0.792))^6))','x','a');fy = zeros(length(x),1);for i = 1:length(x)fy(i)=y(x(i),a);endplot(x,fy)另一个clearclcx=0:0.1:1;a=0.1059;b=2.275;y=inline
clear
clc
x=0:0.1:1;
a=8.3;
y=inline('a*10^(-10)*(0.025+0.975/(1+((1-x)/(1-0.792))^6))','x','a');
fy = zeros(length(x),1);
for i = 1:length(x)
fy(i)=y(x(i),a);
end
plot(x,fy)
figure;
clear
clc
x=0:0.1:1;
a=0.1059;
b=2.275;
y=inline('1.455*10^(3)/a/(1-x)/(log(1-x))^2*(3.148*10^(-15)*(1-x)^(10/3)*a^(2.7)+3*10^(-15)*x^(0.5)*(1-(1-x^b)^(1/b))*(2))','x','a','b');
fy = zeros(length(x),1);
for i = 1:length(x)
fy(i)=y(x(i),a,b);
end
plot(x,fy)

简单办法,把你两段程序加一个figure即可.

结果如下,