<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Finding the right M-Lint message</title>
	<atom:link href="http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/</link>
	<description>Mike works on the MATLAB Desktop team</description>
	<lastBuildDate>Sat, 11 Feb 2012 20:21:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-7671</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 04 Apr 2011 18:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-7671</guid>
		<description>@Glenn,

  The message is to let you know that there will be something printed, that is the second argument to &lt;tt&gt;fprint&lt;/tt&gt;. Most MATLAB commands do not print things directly to the screen or can be suppressed when terminated with a &quot;;&quot;. As of particular note here is that the behavior is different with a no output from a single ouptut. Of course that doesn&#039;t help explain the message. I have brought that to the team&#039;s attention.</description>
		<content:encoded><![CDATA[<p>@Glenn,</p>
<p>  The message is to let you know that there will be something printed, that is the second argument to <tt>fprint</tt>. Most MATLAB commands do not print things directly to the screen or can be suppressed when terminated with a &#8220;;&#8221;. As of particular note here is that the behavior is different with a no output from a single ouptut. Of course that doesn&#8217;t help explain the message. I have brought that to the team&#8217;s attention.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-7668</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Wed, 30 Mar 2011 22:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-7668</guid>
		<description>Not only is the M-lint message confusingly worded, but the
problem it does seem to be warning about doesn&#039;t actually happen.
The unterminated fprintf() does not actually print the
number of bytes written to the screen. Try it:

&gt;&gt; s=fprintf(1, &#039;Hi There\n&#039;)
Hi There
s =
     9
&gt;&gt; %Ok, but:
&gt;&gt; fprintf(1, &#039;Hi There\n&#039;)
Hi There
&gt;&gt;</description>
		<content:encoded><![CDATA[<p>Not only is the M-lint message confusingly worded, but the<br />
problem it does seem to be warning about doesn&#8217;t actually happen.<br />
The unterminated fprintf() does not actually print the<br />
number of bytes written to the screen. Try it:</p>
<p>&gt;&gt; s=fprintf(1, &#8216;Hi There\n&#8217;)<br />
Hi There<br />
s =<br />
     9<br />
&gt;&gt; %Ok, but:<br />
&gt;&gt; fprintf(1, &#8216;Hi There\n&#8217;)<br />
Hi There<br />
&gt;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6945</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 26 Mar 2010 16:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6945</guid>
		<description>@Mike,

You have to admit that the M-lint message in this case is worded a little oddly:
“This call of FPRINTF will produce output that will be printed.”

I can imaging people thinking &#039;Duh, that&#039;s why I called FPRINTF - to have output &#039;printed&#039; to a file!&#039;

Couldn&#039;t it just use the standard &#039;Terminate statement semicolon to prevent output&#039;? In both cases, both messages might be a little clearer if they said &#039;...prevent output to the command line.&#039;</description>
		<content:encoded><![CDATA[<p>@Mike,</p>
<p>You have to admit that the M-lint message in this case is worded a little oddly:<br />
“This call of FPRINTF will produce output that will be printed.”</p>
<p>I can imaging people thinking &#8216;Duh, that&#8217;s why I called FPRINTF &#8211; to have output &#8216;printed&#8217; to a file!&#8217;</p>
<p>Couldn&#8217;t it just use the standard &#8216;Terminate statement semicolon to prevent output&#8217;? In both cases, both messages might be a little clearer if they said &#8216;&#8230;prevent output to the command line.&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6944</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 25 Mar 2010 12:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6944</guid>
		<description>@Noel,

 That is exactly why there is a message, because you aren&#039;t expecting fprintf to return the number of bytes written. If you run your code, you will see an output from the fprintf function. Terminate with a semicolon, and you&#039;ll be good to go.</description>
		<content:encoded><![CDATA[<p>@Noel,</p>
<p> That is exactly why there is a message, because you aren&#8217;t expecting fprintf to return the number of bytes written. If you run your code, you will see an output from the fprintf function. Terminate with a semicolon, and you&#8217;ll be good to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6943</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Wed, 24 Mar 2010 21:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6943</guid>
		<description>Mike,

I am getting the ...

“This call of FPRINTF will produce output that will be printed.” 

... M-Ling message. This is my code:

&lt;pre&gt;
fprintf(fid,&#039;*SECTION      3\n&#039;)
&lt;/pre&gt;

I know I am printing that into the file with FID, but why 
get a warning for this? Thanks for clearing this up in advance.</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>I am getting the &#8230;</p>
<p>“This call of FPRINTF will produce output that will be printed.” </p>
<p>&#8230; M-Ling message. This is my code:</p>
<pre>
fprintf(fid,'*SECTION      3\n')
</pre>
<p>I know I am printing that into the file with FID, but why<br />
get a warning for this? Thanks for clearing this up in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aurélien Queffurust</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6190</link>
		<dc:creator>Aurélien Queffurust</dc:creator>
		<pubDate>Fri, 17 Apr 2009 13:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6190</guid>
		<description>Yes Mike. It is exactly this kind of message that I thought</description>
		<content:encoded><![CDATA[<p>Yes Mike. It is exactly this kind of message that I thought</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6189</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 17 Apr 2009 12:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6189</guid>
		<description>Aurélien,

 Are you thinking of the message: &quot;This call of &lt;NAME&gt; will produce output that will be printed.&quot; ?</description>
		<content:encoded><![CDATA[<p>Aurélien,</p>
<p> Are you thinking of the message: &#8220;This call of <name> will produce output that will be printed.&#8221; ?</name></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aurélien Queffurust</title>
		<link>http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6188</link>
		<dc:creator>Aurélien Queffurust</dc:creator>
		<pubDate>Fri, 17 Apr 2009 08:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/04/06/finding-the-right-m-lint-message/#comment-6188</guid>
		<description>Hi!

I just wonder why there is no M-lint message for fclose or fprintf. It is common to see numbers displayed in the command window because we have forgotten the coma separator ; after a fclose(fid) or a fprint(fid,...)

Aurélien</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I just wonder why there is no M-lint message for fclose or fprintf. It is common to see numbers displayed in the command window because we have forgotten the coma separator ; after a fclose(fid) or a fprint(fid,&#8230;)</p>
<p>Aurélien</p>
]]></content:encoded>
	</item>
</channel>
</rss>

