Introduce new column in a cell array in Matlab

2 ビュー (過去 30 日間)
Maria
Maria 2014 年 6 月 24 日
コメント済み: Maria 2014 年 6 月 24 日
I created a new variable (type cell) ABS_V, which is the absolute difference of to columns from variable FA (type cell).
ABS_V= cellfun(@minus,FA(:,3),FA(:,4));
ABS_V=abs(ABS_V);
ABS_V = num2cell(ABS_V);
I would like to introduce a new column in FA with the variable ABS_V. Both variables are cells and have the same number of rows.
I tried 'newCellCol' but I am not being successful. Can anyone help me? Thanks in advance.

採用された回答

Sara
Sara 2014 年 6 月 24 日
FA(:,end+1) = ABS_V;
  1 件のコメント
Maria
Maria 2014 年 6 月 24 日
Thanks a lot, it worked!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by