matlab循环计算x11=0.3 x21=0.4x12=0.254273-0.155503x11+0.560625x21x22=0.444978+0.406257x11-0.309876x21x13=0.254273-0.155503x12+0.560625x22x23=0.444978+0.406257x12-0.309876x22这样依次到x19,x29用matlab代码得到并输出x11,x12到x19,x29各
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 09:02:59
matlab循环计算x11=0.3 x21=0.4x12=0.254273-0.155503x11+0.560625x21x22=0.444978+0.406257x11-0.309876x21x13=0.254273-0.155503x12+0.560625x22x23=0.444978+0.406257x12-0.309876x22这样依次到x19,x29用matlab代码得到并输出x11,x12到x19,x29各
matlab循环计算
x11=0.3 x21=0.4
x12=0.254273-0.155503x11+0.560625x21
x22=0.444978+0.406257x11-0.309876x21
x13=0.254273-0.155503x12+0.560625x22
x23=0.444978+0.406257x12-0.309876x22
这样依次到x19,x29
用matlab代码得到并输出x11,x12到x19,x29各个数值
matlab循环计算x11=0.3 x21=0.4x12=0.254273-0.155503x11+0.560625x21x22=0.444978+0.406257x11-0.309876x21x13=0.254273-0.155503x12+0.560625x22x23=0.444978+0.406257x12-0.309876x22这样依次到x19,x29用matlab代码得到并输出x11,x12到x19,x29各
x11=0.3; x21=0.4;
x1=zeros(9,1);x2=zeros(9,1);
x1(1)=x11;x2(1)=x21;
for i=2:9
x1(i)=0.254273-0.155503*x1(i-1)+0.560625*x2(i-1);
x2(i)=0.444978+0.406257*x1(i-1)-0.309876*x2(i-1);
end
b=[x1 x2]