mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 20:43:11 +02:00
6 lines
98 B
Matlab
6 lines
98 B
Matlab
function[sum] = sumDiag(L1,i)
|
|
sum=0;
|
|
for k = 1:1:i-1
|
|
sum=sum+L1(i,k)^2;
|
|
end
|
|
end |