How to import .mat file in MATLAB?
56 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bidyarani
el 19 de En. de 2023
Comentada: Bidyarani
el 20 de En. de 2023
i have been trying to import a data in .mat format and after i select the file, "import wizard" window pops up which is shown below. When i click finish button but it shows a blank window. I am not able to import the .mat file. Can someone help me out? thank you in advance.
0 comentarios
Respuesta aceptada
Kunal Kandhari
el 19 de En. de 2023
Hi Bidyarani,
You can make use of load function to read the .mat file into MATLAB.
Below is the sample code for that:
filename = 'test.mat';
load(filename)
Hope this helps!
3 comentarios
Kunal Kandhari
el 20 de En. de 2023
Can you please try this out:
In command window, run this command:
clear
it will clear your workspace and then run the following code:
myVars = {'d_users','cellular_users','pathloss_users','pathloss_cellular'};
load(filename,myVars{:})
disp(cellular_users)
And let me know the output
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!