How to extract data from MATLAB code?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nisar Ahmed
le 17 Fév 2021
Commenté : Nisar Ahmed
le 17 Fév 2021
My data consists of 389 rows and 40 columns like (size(gather) 389 40). I want to extract 40 columns and rows from 105 to 381 (105:381) with new dimensions (size(gather) 276 40). How I can do it?
0 commentaires
Réponse acceptée
Selim Gullulu
le 17 Fév 2021
Hi,
if your initial matrix is M,
The new matrix,N can be created with:
N=M(105:381, : )
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB 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!