Community Profile

Peter Li


The Salk Institute

19 total contributions since 2006

Contact

Contributions in
View by

Submitted


nthperm
Directly compute Nth lexicographic permutation

3 years ago | 3 downloads |

Thumbnail

Submitted


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

3 years ago | 4 downloads |

Thumbnail

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...

3 years ago | 0

| accepted

Question


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

3 years ago | 1 Answers | 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.

3 years ago | 0

Responded


Re: Overloading isfield for objects
Note that ISPROP already seems to do this. But I guess maybe you still want to overload?

3 years ago | 3271 views

Submitted


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

3 years ago | 17 downloads |

Thumbnail

Submitted


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

4 years ago | 2 downloads |

Thumbnail

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 ...

4 years ago | 2

Responded


Re: Run Matlab with remote FLEXlm license server
The downside to this is that when you are on campus and don't want to tunnel you then have to change your hosts file back so tha...

5 years ago | 8981 views

Submitted


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

5 years ago | 0 downloads |

Thumbnail

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...

5 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...

5 years ago | 0

| 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...

5 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...

5 years ago | 0

Responded


Re: Cast Java class to superclass
Nevermind.

5 years ago | 1221 views

Posted


Cast Java class to superclass
I have a Java method that returns an instance of subclass. I need to pass it to another method that accepts instance of supercl...

5 years ago | 1221 views

Submitted


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

9 years ago | 18 downloads |

Thumbnail

Submitted


scanfc
scanf rewritten to give cell arrray output

10 years ago | 2 downloads |

Thumbnail