how to repeat looping the matrix
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hi I have matrix 401*100 I want to make a code that can take the first row in matrix until reach to the end of row and start again from same matrix and take first row to the end of row and do this 451 times or until specific conditions . i want to use for adaptive linear neuron (adaline) for near infrared data
0 Kommentare
Akzeptierte Antwort
  KSSV
      
      
 am 23 Aug. 2017
        A = rand(451,100) ;
[nx,ny] = size(A) ;
for i = 1:nx    % loop for nx times 
    for j = 1:nx    % loop to pick row 
        A(j,:)
    end
end
But I am surprised....why?
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Loops and Conditional Statements 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!

