フィルターのクリア

how to remove a specific section of a cell

8 ビュー (過去 30 日間)
Terek Li
Terek Li 2016 年 10 月 14 日
回答済み: Andrei Bobrov 2016 年 10 月 14 日
For example if I have a 5:2 cell, each cell is filled with value. Is there a way to empty all the value in the 1st column except value in {1,1}
I tried this:
a(2:,1) = []
but MATLAB says 'A null assignment can have only one non-colon index.'

採用された回答

Andrei Bobrov
Andrei Bobrov 2016 年 10 月 14 日
a(2:end,1) = {[]};

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by