Export Struct (.repr = dat + lab) to Textfile while preserving labels
Show older comments
I have a struct file that consists of a rather large dat file (11444x1000) and a file of labels (11444 x 1) that I'd like to export to a text file. Ideally it would read out so that each line consists of the label followed by the 1000 unit vector. I'm comfortable in python but relatively new to matlab so I'm unclear on what the right steps would be. I assume I need something like
fileID = fopen('output.txt','w');
fprintf(fileID,'%f %f\n',y);
% but here all of the online instructions are for individual variables rather than structures.
fclose(fileID);
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!