Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Aug 20, 2003
6
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