Hello, I have so problem with this code segment? When I try to run this program, I receive a error warning "Too many input arguments". Help me to fix this problem! Thank in advance!
Show older comments
for j=0:(floor(nCol/m)-1)
sj = j*m+1;
for i=0:(floor(nRow/m)-1)
si = i*m+1;
if zigzag
| *YVec = [YVec; ZigzagMtx2Vector(Y(si:(si+m-1), sj:(sj+m-1)), ind)];*|
else
YVec = [YVec; reshape(Y(si:(si+m-1), sj:(sj+m-1)), 1, m*m)];
end
end
end
CbVec = [];
CrVec = [];
for j=0:(floor(nCol/s/m)-1)
sj = j*m+1;
for i=0:(floor(nRow/s/m)-1)
si = i*m+1;
if zigzag
CbVec = [CbVec; ZigzagMtx2Vector(Cb(si:(si+m-1), sj:(sj+m-1)), ind)];
CrVec = [CrVec; ZigzagMtx2Vector(Cr(si:(si+m-1), sj:(sj+m-1)), ind)];
else
CbVec = [CbVec; reshape(Cb(si:(si+m-1), sj:(sj+m-1)), 1, m*m)];
CrVec = [CrVec; reshape(Cr(si:(si+m-1), sj:(sj+m-1)), 1, m*m)];
end
end
end
fprintf('zigzag done\n');

Accepted Answer
More Answers (0)
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!