It is never possible to use a symbolic variable as a subscript.
sum(u(1:i-1,i).*u(1:i-1,k))
If you need to generalize this to multiple i values then you should look at techniques such as using tril() and matrix multiplication.
Info
此问题已关闭。 请重新打开它进行编辑或回答。
此问题已关闭。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!