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

1 vue (au cours des 30 derniers jours)
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 ??

Réponse acceptée

Jonathan Sullivan
Jonathan Sullivan le 12 Fév 2013
x = rand(352800,1);
x(300001:end) = [];
size(x)
  1 commentaire
MD.FAISAL
MD.FAISAL le 15 Fév 2013
Modifié(e) : MD.FAISAL le 15 Fév 2013
it can also be done by using
y=X(1:300000) ; thx anyway :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by