Rank: 2029 based on 28 downloads (last 30 days) and 3 files submitted
photo

Peter Mao

E-mail
Company/University
Caltech
Lat/Long
34.13539886474609, -118.126350402832

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Peter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Aug 2011 subarray Extracts a subarray from an array. Useful for function outputs. Author: Peter Mao array, array manipulation, matrix, subarray, submatrix, subset 3 3
21 Jun 2011 Screenshot textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao annotation, customization, text, location, best, automatic 22 9
  • 4.375
4.4 | 8 ratings
09 Jun 2006 Compact data uncertainty format given data and uncertainty, this program reformats the number into parenthetic notation. Author: Peter Mao strings, parentheses, confidence interval, uncertainty, format, parenthetical 3 2
  • 5.0
5.0 | 1 rating
Comments and Ratings by Peter View all
Updated File Comments Rating
09 Jun 2011 textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao

Jamal -- As I recall, that's related to a problem that occurs when translating between figure and axis normalized coordinates. I took it up w/ Mathworks years ago, with no satisfactory resolution, so there it stands.

09 Jun 2011 subarray Extracts a subarray from an array. Useful for function outputs. Author: Peter Mao

I've noticed recently that using ":" in scripts works fine, but in a function, the call to subarray gets evaluated as the unknown variable "subarray"

Haven't got a solution for that yet.

09 Jun 2011 textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao

Adrien -- the trick is to rejigger TSCAN so it goes from top-left to bottom-right. I'll do that if I can find some time. It's been a long time since I looked at the code!

Comments and Ratings on Peter's Files View all
Updated File Comment by Comments Rating
03 Aug 2011 subarray Extracts a subarray from an array. Useful for function outputs. Author: Peter Mao Komarov, Oleg

You don't have to eval it:

a = 1:10;
a(':')

The other case '9:end' could be handled w/o eval.

09 Jun 2011 textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao Mao, Peter

Jamal -- As I recall, that's related to a problem that occurs when translating between figure and axis normalized coordinates. I took it up w/ Mathworks years ago, with no satisfactory resolution, so there it stands.

09 Jun 2011 subarray Extracts a subarray from an array. Useful for function outputs. Author: Peter Mao Mao, Peter

I've noticed recently that using ":" in scripts works fine, but in a function, the call to subarray gets evaluated as the unknown variable "subarray"

Haven't got a solution for that yet.

09 Jun 2011 textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao Mao, Peter

Adrien -- the trick is to rejigger TSCAN so it goes from top-left to bottom-right. I'll do that if I can find some time. It's been a long time since I looked at the code!

28 Mar 2011 textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao James

I can't figure out how to use this code. Does this need to be placed in each .m file I wish to use the textbp function in?

Top Tags Applied by Peter
annotation, array, array manipulation, automatic, best
Files Tagged by Peter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Aug 2011 subarray Extracts a subarray from an array. Useful for function outputs. Author: Peter Mao array, array manipulation, matrix, subarray, submatrix, subset 3 3
21 Jun 2011 Screenshot textbp: text with legend-style "best" placement automatically locates text annotation to minimize figure obscuration Author: Peter Mao annotation, customization, text, location, best, automatic 22 9
  • 4.375
4.4 | 8 ratings
09 Jun 2006 Compact data uncertainty format given data and uncertainty, this program reformats the number into parenthetic notation. Author: Peter Mao strings, parentheses, confidence interval, uncertainty, format, parenthetical 3 2
  • 5.0
5.0 | 1 rating

Contact us at files@mathworks.com