How to retrieve data from a Excel sheet saved at a particular location in pc?
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Hello,
I want to retrieve data from an excel sheet stored at a particular location in the pc, the path of that particular file is provided in the code as below. However, the code is unable to read the file from the given location. I tried the matlab command importdata as well as readmatrix.
sigma_diff=0.5;
beta=0.01;
gamma_nonlin=2*beta;
i=100;
j=1;
speed_F=zeros(i,j);
for j=1:100
    mu(i,j)=importdata('D:\Rahul\Data_tokamak\data&plot\data1_non-ctrw\L-mode data from L-mode eqn\data without edge source\Fisher model\data1_L0_sig0.5_f1\a5_term(i,j)'); 
    speed_F(i,j)=sqrt(sigma_diff*data1.variable.turbulence(i,j)*mu(i,j)^2)/(2*gamma_nonlin);
end
0 commentaires
Réponse acceptée
  Chunru
      
      
 le 22 Nov 2023
        
      Déplacé(e) : Dyuman Joshi
      
      
 le 22 Nov 2023
  
      You need to provide the extension name (.xlsx ?) to the file.
8 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Spreadsheets dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



