what is .data extension in matlab

Hi,
I have the code below:
X=importdata('test.csv');
B = X.data;
I searched for the .data extenion file type , but could not find explaination in matlab !!
please could you explain what is this file type and when i can use it!!!
why not use csv read ? instead of importdata() !!!
Thanks

Answers (1)

Cris LaPierre
Cris LaPierre on 26 May 2024
Edited: Cris LaPierre on 26 May 2024
It is not an extension. X is a structure with a field named 'data'.
Learn more here: Structure arrays

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Products

Release

R2023a

Asked:

on 25 May 2024

Edited:

on 26 May 2024

Community Treasure Hunt

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

Start Hunting!