How to create a .mat file with variables
9 次查看(过去 30 天)
显示 更早的评论
I have an image with 39 point scatterers like this
It is loaded from a .mat file named 'Fighter.mat'. The content of Fighter.mat mat is showing like this.
I want to know how to crate a .mat file and that too how to assign variables to the content like 'Xc','Yc' to it as shown in the figure .
0 个评论
采纳的回答
更多回答(1 个)
Matt J
2022-2-21
You can use matfile() to alter the contens of a .mat file directly, but it might be easier just to load Fighter.mat, make whatever changes you want in the Matlab workspace, and then resave to a new file.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!