×
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

*.mat files into Matlab

*.mat files into Matlab

*.mat files into Matlab

(OP)
Hi i have l little problem with my *.mat files. I used the comand load to read the variables of my file into matlab. But this doesnt work well. I just got this (here with file lp_adlittle.mat):

Problem =

title: 'Netlib LP problem adlittle: minimize c'*x, where Ax=b, lo<=x<=hi'
name: 'LPnetlib/lp_adlittle'
A: [56x138 double]
b: [56x1 double]
c: [138x1 double]
lo: [138x1 double]
hi: [138x1 double]
z0: 0

Ok, but i can't use the matrix A, the vector b etc.. Does anyone know how to access to A,b,c??

RE: *.mat files into Matlab

It's a struct. You need to address it using name_of_struct.A name_of_struct.b, etc.

Try help struct for additional info.

Ben

Senior Design Analyst
Dunlop Tyres
Motorsport Division

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