WHAT IS THE WRONG HERE?
显示 更早的评论
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 个评论
Walter Roberson
2015-5-14
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
2015-5-14
Amr Hashem
2015-5-15
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


