How to read specific fields from multiple structure arrays in MATLAB?
Show older comments
Hello,
I have a very large dataset arranged into multiple structure arrays in MATLAB. The structures look something like this:
Flight1=
.testpoint = 1
.Mach = 0.8
.Speed = 300
.Cieling = 35000
.Data = [A] % A is an MxN matrix
Similarly there are multiple test points for multiple flights. Is there a way to retrieve the Data of only specified test points? For example I want to plot and compare the Data of ALL the test points whose .Mach = 0.8 or where .testpoint = 2?
I hope I have made it clear enough.
Accepted Answer
More Answers (1)
Thorsten
on 20 Feb 2013
A = Flight([Flight.Mach] == 0.8);
B = Flight([Flight.testpoint] == 2);
Categories
Find more on App Building in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!