フィルターのクリア

How can I remove this empty cell from my structure array?

13 ビュー (過去 30 日間)
Brian Leon
Brian Leon 2020 年 4 月 16 日
編集済み: Stephen23 2020 年 4 月 16 日
I have this strucure array with an empy cell as a bracket and I am not sure how can I remove it.

回答 (1 件)

BN
BN 2020 年 4 月 16 日
Hi, In my opinion
Since you have a corresponding value for it in the next column, you can delete it, you can change it to the nan or you can delete the entire row.
You can delete the entire row using this:
numUniqueWords(1) = [];
  2 件のコメント
Brian Leon
Brian Leon 2020 年 4 月 16 日
Thank you.
Stephen23
Stephen23 2020 年 4 月 16 日
編集済み: Stephen23 2020 年 4 月 16 日
"...or you can delete the entire row."
The complete structure only has one row (its size is clearly shown in the screenshot as 1x305), so removing the "entire row" would delete all elements of the structure, leaving a completely empty structure.
The answer deletes the first element of the structure, which is also its first column (not row).

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by