Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read structure entries!?

Status
Not open for further replies.

SchurliBurli

Automotive
Joined
Aug 20, 2003
Messages
6
Location
AT
Hello!

Yes,it is me again! I have some overall troubles with matlab, as it seems.
I can't do yet the step from ansiC to matlab. For explanation: i work with matlab 5.3, if this can be a reason.

My additional Problem now is, that i cannot access the data of a structure.
The structure looks like this:

frf(1).frq_result(200).trans_re(1)

There are:
15 frf
3000 frq_result for each frf
3 trans_re (=row vector) for each frq_result

I want to read out all trans_re(1) from all 3000 frq_results.
For me, it would be logical if i typed this:

x=1:3000;
y=frf(1).frq_result(x).trans_re(1);

BUT, I get this message:
??? Field reference for multiple structure elements that is followed by more reference blocks is an error.

What's that? Can anyone help me, please! Otherwise I think i am going nuts!

Thanks in advance!
Georg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top