Subscripted assignment dimension mismatch.

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

 Accepted Answer

img16(i) = buff(index:index+width+1);

1 Comment

if it doesn't work still provide the values for width , height ,index and buff

Sign in to comment.

More Answers (0)

Categories

Asked:

on 28 Oct 2018

Commented:

on 28 Oct 2018

Community Treasure Hunt

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

Start Hunting!