Clear Filters
Clear Filters

what is .data extension in matlab

30 views (last 30 days)
shawin
shawin on 25 May 2024 at 16:44
Edited: Cris LaPierre on 26 May 2024 at 1:19
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 at 1:17
Edited: Cris LaPierre on 26 May 2024 at 1:19
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!