How to create a .mat file with variables
조회 수: 4 (최근 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!