How to update certain cell values without using for loop
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
Is there away to do these codes below without for loop to make it faster?
for x = 1:336
row{1,x}(p{1,x}(1:end)) = cellPix{1,x}(2:3:pMax(x)*3);
col{1,x}(p{1,x}(1:end)) = cellPix{1,x}(3:3:pMax(x)*3);
end
row,col,p, cellPix are cell arrays.
I appreciate for your help!
댓글 수: 3
Walter Roberson
2023년 4월 5일
Is there a particular reason you are indexing p{1,x}(1:end) insted of just using p{1,x} ?
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!