Clear Filters
Clear Filters

what is .data extension in matlab

8 views (last 30 days)
shawin
shawin on 25 May 2024
Edited: Cris LaPierre on 26 May 2024
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

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!