There is a system of linear equations with 1000 equations and 1000 variables. The 1000 variables are: x(1),x(2),...,x(999),b. The 1000 equations are: 6*x(i)+(1000-i)*(x(i+1)-x(i))-5*x(i+500)=1 (i=0,1,...,499), and x(i)=1+b*(2/3-i*2/3000)^6 (i=500,501,...,999), where x(0)=0.8. How to program this system of linear equations and solve it?
3 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/401304-how-to-set-up-a-system-of-linear-equations-with-loop-and-solve-it#comment_569123
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/401304-how-to-set-up-a-system-of-linear-equations-with-loop-and-solve-it#comment_569123
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/401304-how-to-set-up-a-system-of-linear-equations-with-loop-and-solve-it#comment_569127
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/401304-how-to-set-up-a-system-of-linear-equations-with-loop-and-solve-it#comment_569127
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/401304-how-to-set-up-a-system-of-linear-equations-with-loop-and-solve-it#comment_569197
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/401304-how-to-set-up-a-system-of-linear-equations-with-loop-and-solve-it#comment_569197
Sign in to comment.