how to add rownames and column names for mat file

8 次查看(过去 30 天)
i have some matfiles and i need to assign row names to all the rows of mat file

回答(1 个)

Image Analyst
Image Analyst 2018-9-16
A mat file does not have rows. You can save an additional variable in your mat file if you want though. Just list them all
save('my variables.mat', 'var1', 'rowHeadings', 'fileNames', 'dataTable');
or whatever. Adapt as needed.

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by