How to create a .mat file with variables
11 ビュー (過去 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!