Subscripted assignment dimension mismatch.

2 次查看(过去 30 天)
Dear all, I don't know why I am getting the error on this img16 array gathering loop. kindly advise on how I can fix this
for i=1:height img16(i,:) = buff(index:index+width+1); index = index+width; end

采纳的回答

madhan ravi
madhan ravi 2018-10-28
img16(i) = buff(index:index+width+1);
  1 个评论
madhan ravi
madhan ravi 2018-10-28
if it doesn't work still provide the values for width , height ,index and buff

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by