필터 지우기
필터 지우기

From where I can get fieldnames.m?

조회 수: 1 (최근 30일)
RS
RS 2013년 8월 5일
I am running sameaxis.m getting error something like fieldnames for input arguments of type cell.
  댓글 수: 2
David Sanchez
David Sanchez 2013년 8월 5일
Please, copy-paste the error message you get and if possible, the code you are using.
Jan
Jan 2013년 8월 5일
@S: Please do not post 2 threads for the same problem.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 8월 5일
The more relevant question is where you got samexaxis, as that routine is not part of MATLAB.
If you are using the routine by that name from the File Exchange, then you should read the comments and ratings section of the descriptive page http://www.mathworks.com/matlabcentral/fileexchange/7169-samexaxis-nice-subplots-with-same-x-axis as the problem is discussed and solved there.
  댓글 수: 2
RS
RS 2013년 8월 5일
yes the same page from I got sameaxis.m but still I am not getting right solution?
Walter Roberson
Walter Roberson 2013년 8월 5일
See "31 Jul 2007 Tony Antonacc" in response to the part that follows in which Ramis reports the same error you see.
And make sure that the parseArgs shown there is earlier on the MATLAB path than whatever parseArgs is getting invoked at the moment.
which -all parseArgs

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2013년 8월 5일
While the complete error message and the concerned part of the code would reveal the problem in detail, the partial error message allows to guess, that you apply the function fieldnames() to a cell, but it is defined for struct input only.

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by