Select rows and columns
95 views (last 30 days)
Show older comments
Hello,
In attachment my dataset. I have to select the 3 first columns and the 8 first rows, all the data in it. How do I do this?
0 Comments
Accepted Answer
Azzi Abdelmalek
on 12 Jun 2015
Edited: Azzi Abdelmalek
on 12 Jun 2015
A(1:8,1:3)
Example
A=randi(9,10,5)
out=A(1:8,1:3)
0 Comments
More Answers (0)
See Also
Categories
Find more on Data Import and Analysis 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!