Export Struct (.repr = dat + lab) to Textfile while preserving labels
Ältere Kommentare anzeigen
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);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!