×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Read structure entries!?

Read structure entries!?

Read structure entries!?

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources