Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 MATLAB 7 sprintf warning
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Feb 15 2005 :  8:00:13 PM  Show Profile  Reply with Quote
Hello All,

MATLAB 7 now checks the class of the string arguments for the sprintf function. SPM2 has not been updated to deal with this stricter type checking yet and will generate the the following warning (many, many times):

Warning: The argument for the %s format specifier must be of type char (a string).

Until the SPM2 maintainers fix this issue, you can supress this warning by typing the following:
warning off MATLAB:sprintf:InputForPercentSIsNotOfClassChar
Enjoy,
Chuck

P.S. This suggestion also applies to MIPRead from the BIAC EEG Toolbox.

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Feb 25 2005 :  2:16:35 PM  Show Profile  Reply with Quote
This warning should no longer appear for any functions in the BIAC MATLAB Tools as of version 3.0.11 released on Feb 21, 2005. Please post to this thread if you see the warning from any of these functions.

The issue has not been fixed in SPM2 yet.

Edited by - charles.michelich on Feb 25 2005 2:17:37 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.41 seconds. Snitz Forums 2000