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 ??
Direct link to this answer:
x = rand(352800,1);
x(300001:end) = ;
Direct link to this comment:
it can also be done by using
thx anyway :)
Log In to answer or comment on this question.
Play games and win prizes!
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries