Rank: 2304 based on 60 downloads (last 30 days) and 4 files submitted
photo

Hoi Wong

E-mail

Personal Profile:

http://www.stanford.edu/~wonghoi/

Professional Interests:
signal processing

 

Watch this Author's files

 

Files Posted by Hoi View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Mar 2012 Screenshot Advanced hline and vline Draws horizontal/vertical lines in graphs. Accept axes handle and allows user to specify label posit Author: Hoi Wong annotation, customization, horizontal line verti..., graphics, plot, line 25 1
  • 4.5
4.5 | 2 ratings
30 Mar 2009 Map fields of a structure to output variables The program assigns each field of a structure into output arguments. Author: Hoi Wong variables, struct, varargout, argument, data structure, workspace 14 2
26 Aug 2008 deltree Just like good old deltree.exe, but for MATLAB Author: Hoi Wong path, directories, files, utilities, file, deltree 11 0
11 Feb 2008 Arbitrary files & MATLAB variables <-> data stream vector converter Encode any MATLAB data types into a numeric array, and vice versa Author: Hoi Wong external interface, file struct com data ..., serialization 10 0
Comments and Ratings by Hoi View all
Updated File Comments Rating
23 Jul 2013 clusterData Clusters an MxN array of data into an unspecified number (P) of bins. Author: Brett Shoelson

Haha. My data set is supposed to give me an array of numbers, but sometimes I got a singleton. That's how I found out. By the way, excellent submission!

23 Jul 2013 clusterData Clusters an MxN array of data into an unspecified number (P) of bins. Author: Brett Shoelson

11 Jul 2013 clusterData Clusters an MxN array of data into an unspecified number (P) of bins. Author: Brett Shoelson

It seems like the program get stuck (running forever) when I try to cluster a singleton, say clusterData(3).

05 Aug 2012 plotSeries - Color-code multiple plots plotSeries allows multiple plots to be easily color-coded Author: James Hall

Great tool. I modified your function by adding drawnow() right before enabling colorbar() (at the bottom of the program) so that the plot won't get shrunk unjustifiably when I rescale the figure. Hope it'll be useful info to you.

16 Dec 2011 DSPLOT - downsampled plot This function creates a downsampled plot to improve the speed of exploration (zoom, pan) Author: Jiro Doke

Oh....one more thing. I put NaNs in my signal so it wouldn't plot, but turns out it confuses dsplot's outlier search routine. Any good ways to get around that?

Comments and Ratings on Hoi's Files View all
Updated File Comment by Comments Rating
22 Apr 2012 Advanced hline and vline Draws horizontal/vertical lines in graphs. Accept axes handle and allows user to specify label posit Author: Hoi Wong Felipe

I'd add at the end:
if (nargout == 0), clear lineHandles; end

25 Oct 2011 Advanced hline and vline Draws horizontal/vertical lines in graphs. Accept axes handle and allows user to specify label posit Author: Hoi Wong Rashbeard

15 Mar 2009 Map fields of a structure to output variables The program assigns each field of a structure into output arguments. Author: Hoi Wong Wong, Hoi

Thanks jos for the alternative approach that use deal(). The reason that I made this wrapper is to avoid using deal() and make the code self-documenting.

I wish Mathworks can consider allowing syntaxes like [a,b,c]=(struct2cell(S)){:}, then my submission has no reason to be here. :)

12 Mar 2009 Map fields of a structure to output variables The program assigns each field of a structure into output arguments. Author: Hoi Wong Jos (10584)

A superfluous combination of two basic ML commands. Simply using
C = struct2cell(S) ; [a,b,c] = deal(C{:}) ; in your code is clear enough.

Contact us