save values of matrix in indexes of another matrix

3 vues (au cours des 30 derniers jours)
Hadeel
Hadeel le 16 Nov 2022
hello, i want to
nimg=1;
for ii=1:imglen
for iii=1:c-4+1
hashTable(Idximgseq(ii,iii)+1,nimg)={[ii,iii]};
nimg=nimg+1;
end
end
save matrix of values in another matrix,such that each value in the first matrix saved in the same value of index in the second matix,but i have a problem that the counter increses in all times,i want to increse the counter in saparete index,such that:
first matrix(1,1)=15 saved in the index 15 colomn 1 in the second matrix,first matix(1,2)=15 saved in the index 15 colomn 2 in the second matrix,first matrix(1,3)=13 saved in the index 13 colomn 1 in the second matrix, but my problem that first matrix(1,3)=13 saved in the index 13 colomn 3 in the second matrix not in the index 13 colomn 1??

Réponses (0)

Catégories

En savoir plus sur Biomedical Imaging dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by