I have a cell column, which is a third column of a matrix named 'a'. The cell column contains values A,B,C,D and E. I just want to change all E's to D. Unfortunately this does not work with cells: a(a=='E')='D'; (I am aware that if I cell2mat the column the above will work, but I have to keep it in a cell format.) I suppose it can be done somehow with cellfun …but how??? Regards
MATLAB: Replacing values in a cell which is part of matrix
cells and replacing values in matrix
Related Question
- Unable to use mod function on cell array
- Combine a cell array of cell arrays to a single cell array
- Sort depends on value with cellfun
- How to filter rows of a cell based on an empty column
- How to get the deletedElems to form its own column array? I got newMatrixA, but deletedElems keeps getting an output of 2 instead of [ 1; 3; 2; 9; 7; ]
- Cellfun not working for cells contain cells
- Does the cellfun fails
Best Answer