I have this formula: 100-[(x-1)/(y-1)]*100
, and I would like to apply it to a cell-type variable F
with A rows * 14 columns
in MATLAB, where x = F(:,14)
and y = size(F,1)
.
I have been trying to get there by different attempts, this is one example I tried:
F(:,15) = cellfun(@minus, 100, ((cell2mat(F(:,14)-1)./size(F,1)) * 100));
But it is not working. Could someone help me?