Feeds:
Posts
Comments

Posts Tagged ‘magic’

Matlab Magic

Images are sometimes too easy to make.

Images are sometimes too easy to make.

I occasionally stumble across some interested images in Matlab while testing things out. Particular when trying to run random data through my programs to see if the results are from the data instead of the program itself. In this case I cross-correlation a normalized magic square to get the above surface plot. It looked neat so I kept the code:

mg=magic(40);

 

points=size(mg,1);

mg_norm=zeros(size(mg));

 

for i=1:points

norm=mg(i,:)./max(mg(i,:));

norm=norm-mean(norm);

mg_norm(i,:)=norm;

end

 

a=xcorr2(mg_norm);

a=a.*(1/max(max(a)));

 

figure;

surf(a);

clear a i mg mg_norm norm points

Advertisements

Read Full Post »

Magic

 

I was using my 50mm prime again today, I love that lens.

I was using my 50mm prime again today, I love that lens.

My parents are visiting for the weekend and they brought down some things for me, namely my Magic cards.

Essentially this means that I have lost all of my free time. Time that could be spent working on decent blog posts, planning visits to graduate schools, homework, readings and a whole host of sundry activities. 

I have not played Magic seriously since the eighth grade (about eight years ago) and now it has reentered my life as I found someone to play it with. I need to control the desire to play and do all of  my work that I feel amassing as the academic quarter progresses onward.

Read Full Post »