Hey guys,
I have a cell array like this: znaki4 =
Columns 1 through 6 [38x27 logical] [38x26 logical] [38x20 logical] [37x20 logical] [37x20 logical] [36x21 logical]Column 7 [37x21 logical]
and I want to make them all the same dimension. I already tried to use method posted by ~Image Analyst:
cellContents = znaki{cellNumber}; % Extract array from this cell.
cellContents(42,30) = 0; % Pad down and to the left with 0's.
znaki{cellNumber} = cellContents; % Stuff back in.
and it works very well but unfortunately it's not a good way because I want to use corr2 function and I wanted to have a letter centrally. For now it looks like this:
In second row, they are all the same dimension but they aren't in central position. Is there any way to achieve it?
Best Answer