MATLAB Answers

selecting first row in cell array

32 views (last 30 days)
Oday Shahadh
Oday Shahadh on 10 Jun 2020
Commented: Oday Shahadh on 10 Jun 2020
hi all,
I have below, how can I select first row in a(1)
thanks
a =
[185x3 double]
[185x3 double]
[185x3 double]
[185x3 double]
[185x3 double]
[185x3 double]
[185x3 double]
[185x3 double]
[185x3 double]

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 10 Jun 2020
Edited: madhan ravi on 10 Jun 2020
a{1} % Access to first cell
a{1}(1,:) % Access to first cells first row

  3 Comments

Oday Shahadh
Oday Shahadh on 10 Jun 2020
it returns all rows, what I need is the first row in [185x3 double] which is a(1)
madhan ravi
madhan ravi on 10 Jun 2020
See the second option in my answer
Oday Shahadh
Oday Shahadh on 10 Jun 2020
yesssss you are amazing madhani

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!