MATLAB Answers

How to access data from structure

2 views (last 30 days)
I have data in structure:
C is also structre with size 23x5
I want to access 4th column of each row (its a double values). How to do this with out for loop.


Sign in to comment.

Accepted Answer

Pruthvi Raj Gampalwar
Pruthvi Raj Gampalwar on 18 Mar 2019
Please try this Command to get the 4th column
A.B.C(:,4) % To get 4th column


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!

Translated by