rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/matlab

7 lines
217 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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