How can I import excel file (.xlsx) in Matlab and store the 4th column in a vector?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
How can I import an excel file which contains 4 columns (.xlsx) in Matlab and store the 4th column in a vector?
0 Commenti
Risposte (2)
  Cris LaPierre
    
      
 il 1 Lug 2022
        To just read the 4th column, use 'Range','D:D' for the Name and Value inputs.
You can use the name-value input to read in a specific column.
0 Commenti
  Image Analyst
      
      
 il 1 Lug 2022
        data = readmatrix(fileName);    % Read entire workbook into 2-D matrix.
column4 = data(:, 4);           % Extract column 4 only into column vector.
0 Commenti
Vedere anche
Categorie
				Scopri di più su Spreadsheets in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!