nicojensen.de/vendor/bundle/gems/rouge-3.3.0/lib/rouge/demos/matlab
Nico Jensen b59a203dbb Init
Init commit
2019-03-12 13:49:49 +01:00

6 lines
217 B
Text

A = cat( 3, [1 2 3; 9 8 7; 4 6 5], [0 3 2; 8 8 4; 5 3 5], ...
[6 4 7; 6 8 5; 5 4 3]);
% The EIG function is applied to each of the horizontal 'slices' of A.
for i = 1:3
eig(squeeze(A(i,:,:)))
end