Rank: 817 based on 131 downloads (last 30 days) and 9 files submitted
photo

Steve Simon

E-mail
Company/University
The MathWorks

Personal Profile:

As part of the technical support staff, I answer questions. I have also contributed to the development of the Bioinformatics Toolbox, particularly the file I/O and graphics functions.

Professional Interests:

 

Watch this Author's files

 

Files Posted by Steve View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Nov 2010 Screenshot SCATTERCLOUD Scatterplot over a density cloud. Author: Steve Simon specialized, plotting, scatter, density, cloud, graphics 41 15
  • 4.57143
4.6 | 16 ratings
26 May 2006 LEGENDTITLE Add a title string inside a legend. Author: Steve Simon annotation, customization, legend title, title, axes, legend 20 14
  • 3.25
3.2 | 12 ratings
17 Sep 2004 SPINNER Create a simple spinner control using 3 uicontrols. Author: Steve Simon gui tools, example, gui, spinner, control, edit 15 0
30 Mar 2004 AUTOSAVE Automatically save variables from base workspace. Author: Steve Simon autosave, automatic, save, variables, timer 8 0
24 Oct 2003 CITYPLOT Create 'cityplot' graphics. Author: Steve Simon specialized, plotting, cityplot, create, graphics, city 11 0
  • 5.0
5.0 | 1 rating
Comments and Ratings on Steve's Files View all
Updated File Comment by Comments Rating
06 Dec 2013 SCATTERCLOUD Scatterplot over a density cloud. Author: Steve Simon Yung-Yeh

Very nice and decent code for displaying scatterplot in the 2D map with color for empirical distribution. The counting part was efficient only if you have a larger dataset but set a smaller # of bins. If you increase bin to larger than certain value it starts to get slowly even you have smaller dataset. I can't think of anything better but use an alternative approach for the condition with smaller dataset, and switch to the original method if the # of bin is actually smaller.

Following is my approach, similar to BLu's but with better decision switching between two methods. BTW, the centering bug was fixed in this version based on Thomas's post so length(C) == n

% do counts
if numel(x) < n^2
% New method
binIntX = diff(limitX)/(n-1);
binIntY = diff(limitX)/(n-1);
for idx = 1:numel(x)
idxX = min([round(x(idx)/binIntX)+1 numX]);
idxY = min([round(y(idx)/binIntY)+1 numY]);
C(idxY,idxX) = C(idxY,idxX) + 1;
end
else
% Old method
for i = 1:numY-1
for j = 1:numX-1
C(i,j) = length(find(x >= xEdges(j) & x < xEdges(j+1) &...
y >= yEdges(i) & y < yEdges(i+1)));
end
end
end

05 Jun 2013 LEGENDTITLE Add a title string inside a legend. Author: Steve Simon Peter

19 Nov 2012 LEGENDTITLE Add a title string inside a legend. Author: Steve Simon Nievinski, Felipe G.

It seems the problem can be avoided calling the saveas function instead of clicking Save As from the figure window's File menu (which internally calls hgexport).

02 Jul 2012 SCATTERCLOUD Scatterplot over a density cloud. Author: Steve Simon Nic

21 Apr 2012 SCATTERCLOUD Scatterplot over a density cloud. Author: Steve Simon Julien

Very useful function.

Contact us