struct 구조의 변수는 저장방법은 조금 다른 형식이다.
일반적인 방법으로는 strut변수의 안의 컨테이너를 저장하지 못한다.
0. 구조체 배열생성
Variable.a = 1:3;; Variable.b = 'abc'; |
1. struct 변수 저장
% save('파일 경로/파일명.mat','변수명')
|
2. struct의 전체 container 저장
% save('파일 경로/파일명.mat','-struct','변수명') save('test.mat','-strcut','Variable') |
3. struct의 특정 container 저장
% save('파일 경로/파일명.mat','-struct','변수명','containter 변수명') save('test.mat','-strcut','Variable','a') |
'matlab' 카테고리의 다른 글
[ matlab ] m_map 사용법 (0) | 2023.04.17 |
---|---|
[ matlab ] for (0) | 2023.04.09 |
[copernicus] 데이터 처리 (0) | 2023.03.05 |
정점 수심 (scatter) colorbar 연동 (0) | 2023.02.24 |
[matlab] 정점 contour interpolation 변환 (2) | 2023.02.21 |