2016-11-17から1日間の記事一覧

EAGLEでバスを描く

こんなやり方があったのか https://tool-lab.com/2014/05/mac-eagle-101-18/ より

Traveling Salesman ProblemをLKHオプティマイザで解く

http://home.a00.itscom.net/hatada/np/tsp/tsp_slkh01.htmlLKH(Lin Kernighan Heuristic)というらしい

組合せ最適化と標準問題

http://qiita.com/Tsutomu-KKE@github/items/bfbf4c185ed7004b5721

論理回路のシミュレータLogisim

Logisim https://sourceforge.net/projects/circuit/D-FFを描いてみた 面白い

1次元セル・オートマトン その2

1-256の規則を全て適用してみた function wolfram1d_2 clear all; close all; CAsize = 100; [X,Y] = meshgrid(1,CAsize+1); k = {'111','110','101','100','011','010','001','000'}; % v = {'1','0','1','0','0','1','0','1'}; %165 % writerObj = VideoWr…

1次元セル・オートマトン

規則182を適用 function wolfram1d_2 clear all; close all; CAsize = 100; [X,Y] = meshgrid(1,CAsize+1); figure(); hold on; plot(X,Y,'k'); plot(Y,X,'k'); I = zeros(CAsize+1); surface(I); colormap(gray); axis off; origin = zeros(1,CAsize); % fo…

matlabでデス・スターみたいなプロット

https://www.mathworks.com/help/matlab/visualize/representing-a-matrix-as-a-surface.html figure k = 5; n = 2^k-1; theta = pi*(-n:2:n)/n; phi = (pi/2)*(-n:2:n)'/n; X = cos(phi)*cos(theta); Y = cos(phi)*sin(theta); Z = sin(phi)*ones(size(thet…