The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: how to refer to the data from other m.files
Replies: 1   Last Post: Jan 16, 2014 10:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Svetlana Kovaleva

Posts: 3
Registered: 1/11/14
how to refer to the data from other m.files
Posted: Jan 16, 2014 10:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear all,

I am coding the economic model in Matlab and I have two cases with and without treatment. Two codes with two cases are saved as treat1.m and treat2.m, respectively. The I am trying to calculate the difference for variable (i,t) in treat2.m as the difference
var*(i,t) - var (i,t), where var*(i,t) is the variable (an array) from the file treat1.m. I tried to use the function load as S = load(filename,myVars{:})

but received the following error message

Error using load
Number of columns on line 5 of ASCII file.

Thank you in advance!


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.