MATLAB: How to store a data of a structure into a text file.

structure

I have created a structure in which 4 variables are defined. How to store the values of structure into a text file.

Best Answer

Priyanka - if you just want to write the structure to file, then just try using fopen to open the file, fprintf to write the data (each of the four variables) to file, and fclose to close the file.