Why does inputParser crash Matlab ~R2013?

조회 수: 2 (최근 30일)
Peter Li
Peter Li 2013년 12월 5일
답변: Peter Li 2013년 12월 5일
Under some conditions, inputParser can cause recent versions of Matlab to segfault?!

채택된 답변

Peter Li
Peter Li 2013년 12월 5일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by