- /
-
That's a nice looking Bohemian Eigenfish you got there...
on 11 Oct 2021
- 5
- 43
- 0
- 0
- 239
% Learn more about Bohemian matrices
% https://blogs.mathworks.com/cleve/2019/06/24/bohemian-matrices-in-the-matlab-gallery/?s_tid=srchtitle_bohemian_1
% http://www.bohemianmatrices.com/
m=[0 0 -1 -1;1 -1 0 0;0 1 NaN 0;1 0 -1 NaN];
ix=find(isnan(m));
ixa=ix(1);
ixb=ix(2);
for n=1:1e4
m(ix)=rand(2,1)*6 - 3;
e=eig(m);
e(imag(e)==0)=[];
line(real(e),imag(e),'LineStyle','none', ...
'Marker','.','Color',[0 0 0],'MarkerSize',1)
end
axis equal off