I have 1 x 71 cell arrays that contain 71 tables. I want to set all negative values in the rrr24 column of all tables into zero. I tried some ways but always I get various errors:
first try:
headers = {'rrr24'};for i = 1:numel(C) colIdx = ismember(C{i}.Properties.VariableNames, headers); C{i}(:,colIdx)< 0 = 0end
Second try:
headers = {'rrr24'};index=find(C.Properties.VariableNames, headers <0);precip(index)=0;
Any advice is appreciated.
Thank You
Best Answer