I have a cell that looks like this:
measureables = 'GS_L' 'OECF' 'DYNAMIC_RANGE' 'NOISE'
I do this:
OECFINDEX = strcmp(measureables(:,:),'OECF');
which gives:
ans = 0 1 0 0
now I do this:
OECFINDEX = OECFINDEX(:,any(OECFINDEX));
which should give (correct me if I'm wrong): 1
but the answer is 0.
It does work for larger cells that look like this:
measureables = measureables = 'GS_L' 'OECF' 'DYNAMIC_RANGE' 'NOISE' 'GS_L' 'OECF' 'DYNAMIC_RANGE' 'NOISE' 'GS_L' 'OECF' 'DYNAMIC_RANGE' 'NOISE' 'GS_L' 'DYNAMIC_RANGE' 'NOISE'
here the program gives me:
1110
why is not working for a single column?
Best Answer