Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 MATLAB 7 sprintf warning

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
charles.michelich Posted - Feb 15 2005 : 8:00:13 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
charles.michelich Posted - Feb 25 2005 : 2:16:35 PM
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.

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.37 seconds. Snitz Forums 2000