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!


