Borrar filtros
Borrar filtros

scaling a vector from 352800x1 to 300000x1 by cutting last 52800 row elements?

1 visualización (últimos 30 días)
i have a 352800x1 vector . now i want to take only 300000 row elements .how can i cut last 352800-300000=52800 elements and make it a 300000x1 vector ??

Respuesta aceptada

Jonathan Sullivan
Jonathan Sullivan el 12 de Feb. de 2013
x = rand(352800,1);
x(300001:end) = [];
size(x)

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by