Export Struct (.repr = dat + lab) to Textfile while preserving labels
显示 更早的评论
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);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!