フィルターのクリア

hello all, I want to place all strings in a column , and at the same time ignoring all the '#N/A' string from all the columns..and instead of, place the next strings from next colum .after that i wil get a sheet of 2874 rows of strings in one column

1 回表示 (過去 30 日間)
if true
% code
end

採用された回答

Star Strider
Star Strider 2016 年 6 月 19 日
This seems to work:
[d,s,r] = xlsread('praseena prahlad knnclass.xls');
sc = s(:); % Create Column
idx = (cellfun(@(x)~strcmp(x,'#N/A'), sc, 'UniformOutput',false)); % Create Index
Result = sc(cellfun(@(x) isequal(x,1), idx)) % ‘Result’ is ‘sc’ Where ‘idx == 1’

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by