MATLAB: What is the function to plot this graph

matrix arrayplot

Hi I have an array with values between 0 and 1 and wanted to draw a graph like this: http://imm.io/apWy
Thanks, Fernando

Best Answer

scalefactor = 100; %I am guessing!
[X,Y] = ndgrid(1:size(YourArray,1), 1:size(YourArray,2));
scatter(X(:), Y(:), scalefactor*YourArray(:), YourArray(:))
You will probably want to play with the scale factor, and probably want to play with the colormap .