Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

*.mat files into Matlab

Status
Not open for further replies.

Lagrange2k

Computer
Mar 22, 2005
1
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??
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor