Borrar filtros
Borrar filtros

How to get a csv file from matlab

3 visualizaciones (últimos 30 días)
yasaman
yasaman el 13 de Mzo. de 2023
Respondida: Mathieu NOE el 15 de Mzo. de 2023
I have a matrix in matlab that has 8528 rows and 1000 columns in matlab.(8528 smples)
How can I extract and save a csv file from this matrix?
I want to save this csv file in order to use it in another programming language except matlab.

Respuestas (1)

Mathieu NOE
Mathieu NOE el 15 de Mzo. de 2023
hi
nothing complicated here - try this , I used a smaller array size for the example but it should work for your larger array
% 8528 rows and 1000 columns array
A = rand(85,10); % let's try first something smaller
% select which rows / cols you want to export
r = (10:20);
c = (3:4);
B = A(r,c);
% export
writematrix(B,"export.csv");

Categorías

Más información sobre Data Type Identification en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by