problem with matlab 2009
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear all,
I have the expression
[~,k] = ismember(raw6{ii,8}(1:2),{'MAT','FMI' });
IN matlab 2012 there is no problem when I run it.
IN matlab 2009 I get the following error message
Error: Expression or statement is incorrect--possibly unbalanced (, {, or
[.
thanks
댓글 수: 0
채택된 답변
the cyclist
2012년 8월 3일
The syntax
[~,k]
with the tilde in the output, was introduced later. Replace that with
[dummy,k]
and it should work. (And you don't need to use "dummy", of course.)
추가 답변 (1개)
Daniel Shub
2012년 8월 3일
the ~ to ignore output arguments is a relatively new addition. Just replace ~ with temp. See my answer about problems with doing a global search.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!