Which function will tell me how many rows and columns in matrix?
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
How would I be able to write row(A) and it would output the number of rows in matrix A?
What function should I use and write? Same with columns?
Thanks.
0 Kommentare
Antworten (1)
  Image Analyst
      
      
 am 18 Mai 2014
        
      Bearbeitet: Image Analyst
      
      
 am 18 Mai 2014
  
      theDimensionSizes = size(A);
numDims = ndims(A);
for d = 1 : numDims
    fprintf('Dimension #%d is %d long.\n', k, theDimensionSizes(k));
end
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Logical 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!

