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!
显示 更早的评论
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');

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!