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

 채택된 답변

madhan ravi
madhan ravi 2018년 10월 28일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2018년 10월 28일

댓글:

2018년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by