how can i put the value of find function output to other matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
i have an image that has many zero value i want to find non zero value and then put them in other matrix first i use find function and then save the row and column of this pixels now i should put this pixels into matrix with size(row)*1 i dont want to use for loop can you help me? % [row col]=find(y); % for i=1:size(row,1) % t(i,1)=y(row(i),col(i)); % end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!