Community Profile

Peter Li


The Salk Institute

15 total contributions since 2006

Contact

Peter Li's Badges

  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 3
  • First Submission
  • First Answer

View details...

Contributions in
View by

Submitted


nthperm
Directly compute Nth lexicographic permutation

7 years ago | 2 downloads |

Submitted


Fast batch generation of permutations
Get next block of lexicographic permutations of input vector

7 years ago | 1 download |

Answered
Why does inputParser crash Matlab ~R2013?
MathWorks added a new option to inputParser called PartialMatching. This defaults to true although it changes the behavior of i...

7 years ago | 0

| accepted

Question


Why does inputParser crash Matlab ~R2013?
Under some conditions, inputParser can cause recent versions of Matlab to segfault?!

7 years ago | 1 answer | 0

1

answer

Answered
Why does ISFIELD always return FALSE when querying a user-defined class in MATLAB 7.7 (R2008b)?
ISPROP now does this for objects, at least as of R2011a, quite possibly before that.

7 years ago | 0

Submitted


nth_element
MEX wrap of C++ nth_element. Plus fast_median, a faster median function. In-place and parallel.

7 years ago | 3 downloads |

Submitted


waitfordata
Block Matlab while specified fig is open, then grab APPDATA when fig is closing.

8 years ago | 0 downloads |

Answered
Multi-threaded Mex functions in the FEX
With C++11 your general problem should be solved? Search stackoverflow (or perhaps Matlab answers) for how to compile mex with ...

8 years ago | 2

Submitted


More intuitive subplot
Matlab's subplot is useful for throwing figures together but the indexing is very counter-intuitive.

9 years ago | 0 downloads |

Question


How to decode mxGetData void pointer nicely
I'm trying to write a C++ mex function that can handle multiple datatypes. So I do something like: void *data = mxGetData(mx...

9 years ago | 0 answers | 2

0

answers

Answered
How do I access a Java inner class from Matlab?
However, contrary to the answer provided by support, this _is_ possible without writing custom wrappers! If you are trying to g...

9 years ago | 2

| accepted

Question


How do I access a Java inner class from Matlab?
As described in <http://www.mathworks.com/support/solutions/en/data/1-SJ6EQ/index.html?solution=1-SJ6EQ this MathWorks support n...

9 years ago | 2 answers | 0

2

answers

Answered
MATLAB library initialization failing due to (I suspect) multiple versions of boost thread library
One possible alternative solution in this situation is to just link your code against MATLAB's version of boost_thread. You may...

9 years ago | 0

Submitted


LSM File Toolbox
Functions for reading info databases of Zeiss LSM confocal microscope files.

13 years ago | 6 downloads |

Submitted


scanfc
scanf rewritten to give cell arrray output

14 years ago | 1 download |