How to reduce the length of a vector?

B
Benjamin · Mar 1, 2021 · 2K views
Question
I have A which is 8x2 vector   A = [185 194; 155 208; 152 244; 174 258; 214 257; 223 236; 220 211; 215 198];   I want to generate B which is 50% of A by selecting every other pair.   B = [185 194; 152 244; 214 257; 220 211];   Any idea how to generate B?   Any idea will be appreciated.
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Nov 20, 2025
 B = A(1:2:end,:);
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!