Load Variables in Matlab 7: How to Adjust Settings

  • Context: MATLAB 
  • Thread starter Thread starter Ai52487963
  • Start date Start date
  • Tags Tags
    Load Matlab
Click For Summary
SUMMARY

In Matlab 7, loading variables from files does not retain the full ASCII filename as it does in Matlab R2008. Instead, it defaults to a simplified variable name, which can lead to confusion in scripts. Users have reported that using single quotes around the filename does not resolve this issue. To maintain compatibility, it is recommended to check the documentation for any necessary flags, although the -version4 flag is not typically required for transitions from R2008 to Matlab 7.

PREREQUISITES
  • Familiarity with Matlab 7 variable loading mechanisms
  • Understanding of Matlab R2008 features and differences
  • Knowledge of file naming conventions in Matlab
  • Basic understanding of backward compatibility in software
NEXT STEPS
  • Research how to use the 'load' function in Matlab 7 effectively
  • Explore the differences in variable naming conventions between Matlab versions
  • Investigate the use of flags for backward compatibility in Matlab
  • Learn about file handling and naming best practices in Matlab
USEFUL FOR

Matlab users, software developers transitioning between versions, and anyone needing to manage variable names effectively in Matlab scripts.

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 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K