Info

This question is closed. Reopen it to edit or answer.

manipultion of matrix element

1 view (last 30 days)
Rica
Rica on 14 Jan 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
hi! i have as an example this matrix (my matrix is big):
%
A=[a1 a2 a3 a4 a5 a6 a7; b1 b2 b3 b4 b5 b6 b7; c1 c2 c3 c4 c5 c6 c7]
how could i build
f=[a1 a3 a5 a7;b1 b3 b5 b7;c1 c3 c5 c7] ?
thank you

Answers (1)

Matt J
Matt J on 14 Jan 2013
f=A(:,1:2:end);

Community Treasure Hunt

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

Start Hunting!