image thumbnail
from Using MATLAB(R) visualization in a .NET PictureBox by Martti
How to bring bitmap data generated from a MATLAB(R) figure into a C# application.

makesquare(x)
function y = makesquare(x)
% Copyright (c) 2009, The MathWorks, Inc.
%
% Creates a magic matrix
y = magic(x);

Contact us at files@mathworks.com