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;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by