dataset ismember error message

Hi I get this error trying to use ismember on two datasets, please advise?
Y=ismember(ds_raw,ds)
Undefined function 'eq' for input arguments of type 'dataset'.
Error in ismember>ismemberlegacy (line 347)
tf = (a == s);
Error in ismember (line 76)
[varargout{1:nlhs}] = ismemberlegacy(varargin{:});
ds =
bil motor vvx cyl
'v70' 'b234' 'aut' 4
'v60' 'b234' 'man' 6
's80' 'b326' 'man' 6
's80' 'b326' 'man' 6
's80' 'b326' 'man' 6
'v70' 'b234' 'aut' 4
'v70' 'b234' 'aut' 4
ds_raw =
bil motor vvx cyl
'v70' 'b234' 'aut' 4
'v60' 'b234' 'man' 6
's80' 'b326' 'man' 6
's80' 'b234' 'aut' 4
'v70' 'b326' 'man' 4
'v70' 'c325' 'man' 4

댓글 수: 5

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 13일
What should be the result?
Sean de Wolski
Sean de Wolski 2013년 2월 13일
편집: Sean de Wolski 2013년 2월 13일
  • What release are you using?
  • Does this work?
ds = dataset((1:10)');
ismember(ds,ds)
jonas
jonas 2013년 2월 14일
Hi I got the same error message when I tried ds = dataset((1:10)'); ismember(ds,ds)
I'm using Matlab R2012a version.
the cyclist
the cyclist 2013년 2월 14일
Just as a point of information, Sean's command worked for me, using R2012b.
jonas
jonas 2013년 2월 14일
Is it a R2012a problem then?

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

 채택된 답변

Sean de Wolski
Sean de Wolski 2013년 2월 14일

0 개 추천

ismember overloaded for datasets appears to be new in 12b. If your company/university is current on your SMS subscription you can upgrade for free.

댓글 수: 3

jonas
jonas 2013년 2월 14일
I have a company licence, how do I upgrade?
Sean de Wolski
Sean de Wolski 2013년 2월 14일
Either log into your account on MathWorks.com and download it or talk to your IT people who manage the license.
(Or call us :), most of the people here don't bite!)
jonas
jonas 2013년 2월 15일
Ok, thank you for answering my question!! :)

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

추가 답변 (0개)

카테고리

질문:

2013년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by