Extract column 1, 4-6, 8 of an 8x8 matrix

2 views (last 30 days)
Hello everyone, I have an 8x8 matrix and and I need to extract columns 1,4-6,8 as in the matrix below:
1 2 3 4 5 6 3 1
1 3 5 6 8 7 1 0
5 3 1 7 9 2 9 2
10 61 32 45 12 62 40 51
1 2 3 4 5 6 3 1
1 3 5 6 8 7 1 0
5 3 1 7 9 2 9 2
10 61 32 45 12 62 40 51
I don't really know how to. I have being on it for a while. Please any assistance will be appreciated. Thanks

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 6 May 2016
Edited: Azzi Abdelmalek on 6 May 2016
A(:,[1 4:6 8])
  6 Comments
VicPeters
VicPeters on 6 May 2016
Thanks Azzi, I don't really know how to thank you enough, you made my day! It is my prayer for you that you'll get help anytime you need one.
Thanks once again!

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!