Borrar filtros
Borrar filtros

How can I plot the first 1000 numbers in my matrix?

11 visualizaciones (últimos 30 días)
Greg Smith
Greg Smith el 4 de Jun. de 2018
Comentada: Greg Smith el 5 de Jun. de 2018
I have a 15364 x 6 matrix and I only want to plot the first 167 rows. How can I transform my 15364x6 into a 167x6 while keeping all the numbers in order?

Respuestas (2)

Sid Parida
Sid Parida el 4 de Jun. de 2018
Let A be the original matrix this should do it:
B = A(1:167, :)
  1 comentario
Greg Smith
Greg Smith el 5 de Jun. de 2018
I get the following error:
Index in position 1 exceeds array bounds (must not exceed 1).

Iniciar sesión para comentar.


Honglei Chen
Honglei Chen el 4 de Jun. de 2018
You can do
y = x(1:167,:)
where x is the original data matrix.
HTH

Categorías

Más información sobre Line Plots 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