Reading data in cell arrays help
Afficher commentaires plus anciens
Hi There was this line in a program code.
for k = 1:9
[i,j] = ind2sub([3,3],k);
Output(:,:,indx+k) = AccessImageDiff{row,col}(i:end-3+i,j:end-3+j);
end
Now my problem is how do i read this line? Can somebody teach me on how to read this specific line
- Output(:,:,indx+k) = AccessImageDiff{row,col}(i:end-3+i,j:end-3+j);*
i know that it is accessing a cell array and manipulating its data but what i am confused about is the (i:end-3+i,j:end-3+j) part.
1.what does ":" mean?
2.what does "end" mean? It didn't use end as a variable.
Thanks in advance
There's this tutorial about accessing data in cell arrays but it doesn't really answer my question https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-cell-array.html
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!