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

Réponses (1)

Cris LaPierre
Cris LaPierre le 26 Mai 2024
Modifié(e) : Cris LaPierre le 26 Mai 2024

0 votes

It is not an extension. X is a structure with a field named 'data'.
Learn more here: Structure arrays

Catégories

En savoir plus sur Data Import and Analysis dans Centre d'aide et File Exchange

Produits

Version

R2023a

Question posée :

le 25 Mai 2024

Modifié(e) :

le 26 Mai 2024

Community Treasure Hunt

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

Start Hunting!

Translated by