Clear Filters
Clear Filters

How to create matrix from another matrix?

1 view (last 30 days)
Hi all. I have m(80x200) matrix. I want to take first 41 values from each column and create n(41x200) matrix. Do I need for loop for this?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 May 2016
Edited: Azzi Abdelmalek on 14 May 2016
You want the first 41 rows of your matrix
A(1:41,:)

More Answers (0)

Categories

Find more on Loops and Conditional Statements 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!