Write table in matlab
조회 수: 12 (최근 30일)
이전 댓글 표시
I have some matrix and i want to save matrix in table in .mat file. How can i do this by code?
for example:
i have matrix A = [3 4 5 6] and matrix B =[ 4 5 6 7]
file 'save.mat' contain table 'data'.
How can i save 2 matrix in 'data' in 1 row like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1225172/image.png)
댓글 수: 0
답변 (1개)
Voss
2022년 12월 9일
A = [3 4 5 6];
B = [4 5 6 7];
data = array2table([A B]);
save('save.mat','data')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!