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

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 ??

 채택된 답변

x = rand(352800,1);
x(300001:end) = [];
size(x)

댓글 수: 1

MD.FAISAL
MD.FAISAL 2013년 2월 15일
편집: MD.FAISAL 2013년 2월 15일
it can also be done by using
y=X(1:300000) ; thx anyway :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by