problem with matlab 2009
1 次查看(过去 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 中查找有关 Argument Definitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!