n=5C=zeros(n,1)R=CC(1:2)=[6 8]R(1:2)=[6 1]A=toeplitz(C,R)b=22.5*ones(n)b(1)=10.5b(end)=21
可这样:A=[...];b=[...];x=A\b