How to extract data from MATLAB code?

2 visualizaciones (últimos 30 días)
Nisar Ahmed
Nisar Ahmed el 17 de Feb. de 2021
Comentada: Nisar Ahmed el 17 de Feb. de 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?

Respuesta aceptada

Selim Gullulu
Selim Gullulu el 17 de Feb. de 2021
Hi,
if your initial matrix is M,
The new matrix,N can be created with:
N=M(105:381, : )

Más respuestas (1)

randerss simil
randerss simil el 17 de Feb. de 2021
%if true
A = rand(389,40)
iwant = A(105:381,:)

Categorías

Más información sobre Get Started with MATLAB 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