フィルターのクリア

Delete Column from matrix

1 回表示 (過去 30 日間)
Filippo
Filippo 2012 年 3 月 21 日
Hi, I'm tring to delete item from structure, the structure is: A.data A.smpf
When the program arrives in this instructions:
A.data(1,(c_x+1):end)=[]; c_x is 13 and A.data is 1x180000. I have this error: A null assignment can have only one non-colon index.
Some help? Thanks
  1 件のコメント
Daniel Shub
Daniel Shub 2012 年 3 月 21 日
What are you trying to do? It looks like you are tying to delete a portion of a column. Are you sure you are not trying to set the values to nan or 0 or -inf.

サインインしてコメントする。

採用された回答

TAB
TAB 2012 年 3 月 21 日
Try
A.data((c_x+1):end)=[];
  1 件のコメント
Filippo
Filippo 2012 年 3 月 21 日
thanks,
It's perfect...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by