I have a cell array like this:
if true ca={'x' 1 1 9 3;'y' 5 1 1 1; 'z' 5 7 5 9};end
I have to find the max number of each column then divide all element of that column to maximum I wrote this code but it had errors:
if true
for j=2:3
max_column=max(ca(:,j));for i=1:5ca(i,j)= ca(i,j)/max_column;endenddisp(ca) end
Please help me to edit this code. thanks in advance
Best Answer