Fun with MATLAB
Back to main page.
Introduction
MATLAB can be pretty fun.
Here is some furniture
that I designed using MATLAB. Click
on it for a larger version.
The MATLAB code is given here:
midLevel=round(count/2);
for xstar=1:count,
for ystar=1:count,
plooky=pi^2*( ((xstar-midLevel)/xLength)^2 + ((ystar-midLevel)/yLength)^2 );
A1matrix(ystar,xstar)=count^2*plooky*(-1)/(1);
end;
end;
StarLength=50;
windowstar=ones(count,count);
for xstar=1:count,
for ystar=1:count,
if abs(xstar-midLevel)>StarLength | abs(ystar-midLevel)>StarLength,
windowstar(xstar,ystar)=0;
end;
end;
end;
A1matrix=A1matrix.*windowstar;