how to select and save particulat part of a column in mat file?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
SimTec
le 24 Août 2021
Modifié(e) : Turlough Hughes
le 24 Août 2021
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');
0 commentaires
Réponse acceptée
Turlough Hughes
le 24 Août 2021
Modifié(e) : Turlough Hughes
le 24 Août 2021
columns = [2 3 5];
rows = 50:100;
x = mydata(rows,columns);
save('mydata.mat','x')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!