Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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!

Svetlana



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.