I have a 1801 x 20 data matrix where one column is one set of data. I need to calculate the log diff and I I actually wanted to clear each column from the zeros, but each column has a different amount of zeros within the data (which is not possible in a matrix). I did this so far:
p3=num2cell(p2) ;
p3(p3==0)=[];
or:
p3(cellfun(@(p3==0)=[];
But both didnt work.
2 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/652448-delete-specific-numbers-from-cell-array#comment_1143888
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/652448-delete-specific-numbers-from-cell-array#comment_1143888
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/652448-delete-specific-numbers-from-cell-array#comment_1143958
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/652448-delete-specific-numbers-from-cell-array#comment_1143958
Sign in to comment.