フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Write a function called censor whose first input argument is a cell vector (row or column) of strings and whose second input argument is a string. It removes each element of the cell vector whose string is either identical to the second input argumen

2 ビュー (過去 30 日間)
krushnasamy subramaniyan
krushnasamy subramaniyan 2015 年 6 月 7 日
閉鎖済み: Walter Roberson 2015 年 6 月 7 日
str={'hi' 'me' 'if' {'yes' 'no' 'hi'} {'for' 'while' 'all'} 'hi'}; %example element='hi'; %remove 'hi' str(strcmp(str,element))=''; for i=1:length(str) if iscell(str{i}) str{i}(strcmp(str{i},element))=''; end end
  1 件のコメント
dpb
dpb 2015 年 6 月 7 日
Again, please do NOT repeatedly post the same question with the same effort that has been shown to be the wrong approach. Refer to the previous where were pointed in the right direction and continue from there instead...

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by