WHAT IS THE WRONG HERE?
Show older comments
I AM TRYING TO FIND ALL CELLS IN A WICH EQUAL B THE CODE :
for j=1:length(defs) % loop over Mdr of defib
querymdr=data2(:,1); % "A" save MDR numbers
y=alldata(:,1); % "B"
idx= find(y==querymdr); % FIND ALL CELLS WHICH IS EQUAL
it gives me an error in
idx= find(y==querymdr);
what was i write wrong?
3 Comments
Walter Roberson
on 14 May 2015
What is the error message?
Is it correct that y will be a cell array? Is querymdr also going to be a cell array?
Or is querymdr going to be a numeric value and you want to find the cells consist of a scalar that is that value? Or is querymdr going to be a numeric value and you want to find the cells that contain the numeric value somewhere in their numeric array? Or ... there are other possibilities.
Amr Hashem
on 14 May 2015
Amr Hashem
on 15 May 2015
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

