find structure
古いコメントを表示
I have 2 structure vectors A and B. I want to find the files in A that are not in B I used x=find(~ismember(A,B)); I received an error : ??? Error using ==> double Conversion to double from struct is not possible.
Error in ==> ismember at 90 a = double(a);
How can I perform this task?
3 件のコメント
Fangjun Jiang
2011 年 9 月 20 日
What is your structure A and B? Does it come from dir()?
per isakson
2011 年 9 月 20 日
Do you mean "fields" rather than "files"? If so try setdiff( fieldnames(A),fieldnames(B) )
joseph Frank
2011 年 9 月 21 日
回答 (1 件)
Fangjun Jiang
2011 年 10 月 2 日
1 投票
setdiff({A.name},{B.name})
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!