I reshaped the image elements into 16*1 column vector using the following code. There is 16 vectors in variable (tv). Now i need to retrieve the first vector of variable (tv). ie, i need tv(1), tv(2)... tv(16)Please say the code.
1 view (last 30 days)
Show older comments
for i=1:4:16
for j=1:4:16
block=I(i:i+3,j:j+3);
disp(block)
%convert 4X4 into 16X1 column vector
tv=reshape(block,16,1);
disp(tv)
column=column+4;
end
row=row+4;
end
0 Comments
Answers (0)
See Also
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!