MATLAB Load Variables in Matlab 7: How to Adjust Settings

  • Thread starter Thread starter Ai52487963
  • Start date Start date
  • Tags Tags
    Load Matlab
AI Thread Summary
In the discussion, a user seeks clarification on how variable naming differs between Matlab R2008 and Matlab 7 when loading files. In Matlab R2008, loading a file named "DES.incompl1.output" results in a variable named "DES_incompl1," which is preferred. However, in Matlab 7, the same command yields a variable simply named "DES." The user inquires whether there is a method to retain the full ASCII filename or to replicate the naming convention of the newer version. Suggestions include using single quotes around the filename and referencing documentation on backwards compatibility, which may involve using flags like -version4 for saving files. However, it is noted that such flags may not be necessary for compatibility between these specific versions.
Ai52487963
Messages
111
Reaction score
0
Real quick question:

I had been using MatlabR2008 for a while and got used to how the load function stores variables, so my scripts are all based around it. However, I'm working with an older version of Matlab right now that when I load it, does this:

Matlab R2008 load:

load DES.incompl1.output

stores a variable

DES_incompl1 (this is what I want)




Matlab 7 load:

load DES.incompl1.output

stores a variable

DES


Is there a way in Matlab 7 to have it load the full ascii filename or make it do the 7.8 version where it loads the first filetype extension thing?
 
Physics news on Phys.org
Have you tried using single quotes around the file name?

The documentation has some information about backwards compatibility - sometimes you need to add a flag like -version4 to save it so older version can open it, but my guess is that this is not required for 2008 -> 2007.

-Kerry
 

Similar threads

Replies
5
Views
2K
Replies
5
Views
2K
Replies
2
Views
2K
Replies
2
Views
2K
Replies
12
Views
3K
Replies
1
Views
4K
Replies
2
Views
2K
Back
Top