Rank: 3304 based on 10 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
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 0 2
26 Aug 2008 deltree Just like good old deltree.exe, but for MATLAB Author: Hoi Wong path, directories, files, utilities, file, deltree 1 0
20 Feb 2008 Screenshot Advanced hline and vline Draws horizontal/vertical lines in graphs. Accept axes handle and allows user to specify label posit Author: Hoi Wong horizontal line verti..., annotation, customization, graphics, plot 7 0
  • 5.0
5.0 | 1 rating
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 ... 2 0
Comments and Ratings by Hoi View all
Updated File Comments Rating
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?

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

The function is great, but I'd really love to use it in subplots. Any chance to add support to subplots?

It'd be tricky to tell whether the plot is downsampled or true representation without changing the figure title. One way I can think of is to set the 'Color' property of the subplot axesHandle to very light yellow for downsampled display.

16 Dec 2011 plotLDS Enhance zooming and panning on large data sets by automatically downsampling data Author: Sebastian Hölz

my data has multiple columns (in a matrix), which the regular plot() command or Jiro's dsplot() will draw multiple lines correctly. plotLDS() gave me this error message:

Error in ==> plotLDS at 177
h = plot([min(x) min(x) max(x) max(x)],[min(y) max(y) min(y) max(y)], ...

I'd like to use this feature in subplots, but it seems like Jiro's version doesn't support it.

06 Apr 2009 statusbar set/get status bar(s) for GUI figures & Matlab desktop Author: Yair Altman

Great tool. My project uses a lot of your enableDisableFig and stausbar. But it seems like R2009b pops out a lot "Property name already in use" and MCR pops out a lot problems with 'undefined function or variable currentState' in enableDisableFig. Got some time to look at it? Thanks!

05 Apr 2009 UNIQUEWITHEQUALNANS Set unique, treating NaNs as equal (v2.0, mar 2009) Author: Jos (10584)

Great tool. But you cannot just pass [] into unique as second argument. I modified it for my own use, but I'd encourage the original author to update it instead of having me posting a minor modification of your work. :)

Comments and Ratings on Hoi's Files View all
Updated File Comment by Comments Rating
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.

Top Tags Applied by Hoi
annotation, argument, customization, data structure, deltree
Files Tagged by Hoi View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
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 0 2
26 Aug 2008 deltree Just like good old deltree.exe, but for MATLAB Author: Hoi Wong path, directories, files, utilities, file, deltree 1 0
20 Feb 2008 Screenshot Advanced hline and vline Draws horizontal/vertical lines in graphs. Accept axes handle and allows user to specify label posit Author: Hoi Wong horizontal line verti..., annotation, customization, graphics, plot 7 0
  • 5.0
5.0 | 1 rating
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 ... 2 0

Contact us at files@mathworks.com