how to select and save particulat part of a column in mat file?

12 visualizaciones (últimos 30 días)
I have saved a CSV file as mat file and I could read it. the file has many column and each column has thousands of rows.
How can I access and select particular column and sets of rows of these column and save it as matfile?
mydata=readmatrix('TEST.csv');

Respuesta aceptada

Turlough Hughes
Turlough Hughes el 24 de Ag. de 2021
Editada: Turlough Hughes el 24 de Ag. de 2021
columns = [2 3 5];
rows = 50:100;
x = mydata(rows,columns);
save('mydata.mat','x')

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files 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