Why does inputParser crash Matlab ~R2013?

2 Ansichten (letzte 30 Tage)
Peter Li
Peter Li am 5 Dez. 2013
Beantwortet: Peter Li am 5 Dez. 2013
Under some conditions, inputParser can cause recent versions of Matlab to segfault?!

Akzeptierte Antwort

Peter Li
Peter Li am 5 Dez. 2013
MathWorks added a new option to inputParser called PartialMatching. This defaults to true although it changes the behavior of inputParser. Unfortunately when used in conjunction with KeepUnmatched it can also cause Matlab to segfault!
Until this is fixed, you can work around with:
ip = inputParser();
if isprop(ip, 'PartialMatching'), ip.PartialMatching = false; end
I've asked MathWorks to make a bug report so we'll know when this is fixed; will post it here if I hear back.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by