フィルターのクリア

Write table in matlab

11 ビュー (過去 30 日間)
vo
vo 2022 年 12 月 9 日
回答済み: Voss 2022 年 12 月 9 日
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

回答 (1 件)

Voss
Voss 2022 年 12 月 9 日
A = [3 4 5 6];
B = [4 5 6 7];
data = array2table([A B]);
save('save.mat','data')

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by