フィルターのクリア

Remove numbers from a cell array of length n = 10963

1 回表示 (過去 30 日間)
FRANCISCO
FRANCISCO 2013 年 12 月 11 日
コメント済み: FRANCISCO 2013 年 12 月 11 日
As I can remove numbers from a cell array?
I have a cell of 10693 rows and 1 column. Each of these rows contains another array containing numbers and I want to delete the numbers (-1). As I can do that with a loop? thank you very much

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 11 日
編集済み: Azzi Abdelmalek 2013 年 12 月 11 日
If A is your array
A={1:3 -1:5}
out=cellfun(@(x) x(x~=-1), A,'un',0)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by