Writeable did not match any valid parameter of the parser

In the GUIDE GUI.m file, I have a screen where I need to define a cell array variable that needs to be updated (add +1 to one of its elements) depending on which choice the user selects.
A code like this:
filename = 'participants.mat';
m = matfile(filename,'Writeable',isWriteable);
participantData = m.participantData;
Is giving me this error:
Error using matlab.io.MatFile (line 397)
Argument 'Writeable' did not match any valid parameter of the parser
I placed this in the OpeningFcn of the GUIDE GUI.
Input would be greatly appreciated.

댓글 수: 1

Resolved: the problem here I believe was it is not suppose to be 'Writeable' but rather 'Writable', and it should say 'true' instead of 'isWriteable'.

답변 (0개)

이 질문은 마감되었습니다.

질문:

2014년 12월 16일

마감:

2014년 12월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by