Suppose i have a 2-dim array of 512*512 elements. how i can access pair of element in row wise by matlab or c.
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    aditya kumar sahu
 am 26 Okt. 2016
  
    
    
    
    
    Beantwortet: KSSV
      
      
 am 26 Okt. 2016
            Suppose i have a 2-dim array of 512*512 elements. how i can access pair of element in row wise by matlab or c.
0 Kommentare
Akzeptierte Antwort
  KSSV
      
      
 am 26 Okt. 2016
        K = rand(512,512) ;  % a random 2D data
You can access a row by: picking first row:
K(1,:)
10 th row:
K(10,:)
nth row:
K(n,:)
YOu can pick a column by:
First column:
K(:,1)
77th column:
K(:,77)
nth column:
k(:,n)
You can pick (i,j) element using
K(i,j)
Read abut matrix indexing in matlab.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Matrix Indexing 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!
