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

34 ビュー (過去 30 日間)
Bidyarani
Bidyarani 2023 年 1 月 20 日
コメント済み: Arif Hoq 2023 年 1 月 20 日
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 件のコメント
Jiri Hajek
Jiri Hajek 2023 年 1 月 20 日
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 2023 年 1 月 20 日
@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.

サインインしてコメントする。

採用された回答

Arif Hoq
Arif Hoq 2023 年 1 月 20 日
a=load('your mat file.mat');
  2 件のコメント
Bidyarani
Bidyarani 2023 年 1 月 20 日
@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?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by