How to import a dataset in .mat file for data pre-processing?

33 visualizzazioni (ultimi 30 giorni)
i have a dataset in .mat file and all the variables have different dimensions which is shown below. First i want to import and view all the variables along with the datas in table output type. so that i can proceed for data preprocessing.
i tried with csv file , it can import directly and can view the csv file in the table output type but not able to import .mat file . Can anyone help me out with this issue?
I want to import the .mat file and want to view all the variables inside the .mat files along with the values.
  2 Commenti
Jiri Hajek
Jiri Hajek il 20 Gen 2023
Hi, your question is confusing, I'm afraid. You want to import a mat file - into MATLAB? But from your screenshot it seems like you already have the data in MATLAB, so "load('yourDataFile.mat')" you already know. So you could inspect all the data in MATLAB with no trouble. But you don't want to do it in MATLAB? It's really a mystery.
Bidyarani
Bidyarani il 20 Gen 2023
@Jiri Hajek sir if i import a dataset in csv file then i can choose the "output type" option such as table and can display in a table format (all variables along with thier values columnwise).
since my dataset is in .mat file format and when i tried to import the .mat file , "import wizard" window pops up which is shown below. when i click the finish button it shows a blank window.
Sir my question is how to import the .mat file and display like a table format(all the variables along with the values columnwise) or if possible convert it to a csv file (all variables along with thier values columnwise).
Morever i have tried converting this .mat file to csv file (containing all variables in one csv file) but not working.

Accedi per commentare.

Risposta accettata

Arif Hoq
Arif Hoq il 20 Gen 2023
a=load('your mat file.mat');
  2 Commenti
Bidyarani
Bidyarani il 20 Gen 2023
@Arif Hoq sir can we convert this .mat file into one csv file(all variables with values columnwise)? since all the variables in my .mat file has different dimensions , i am facing problems converting into one csv file?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by