Borrar filtros
Borrar filtros

Write table in matlab

12 visualizaciones (últimos 30 días)
vo
vo el 9 de Dic. de 2022
Respondida: Voss el 9 de Dic. de 2022
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

Respuestas (1)

Voss
Voss el 9 de Dic. de 2022
A = [3 4 5 6];
B = [4 5 6 7];
data = array2table([A B]);
save('save.mat','data')

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by