<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Vectorized goto in MATLAB</title>
	<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/</link>
	<description>Loren Shure  works on design of the MATLAB language at The MathWorks. She writes here about once a week on MATLAB programming and related topics. </description>
	<pubDate>Fri, 25 Jul 2008 10:34:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-26337</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Sun, 17 Feb 2008 18:21:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-26337</guid>
		<description>Dr. Phillip Feldman and Mray,

I have placed your request in the enhancement database.  Thank you for the feedback.

--Loren</description>
		<content:encoded><![CDATA[<p>Dr. Phillip Feldman and Mray,</p>
<p>I have placed your request in the enhancement database.  Thank you for the feedback.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mray</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-26306</link>
		<dc:creator>Mray</dc:creator>
		<pubDate>Sun, 17 Feb 2008 03:20:40 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-26306</guid>
		<description>Often, I like to 'break' out of nested loops.
It would really help having a function that would allow that.</description>
		<content:encoded><![CDATA[<p>Often, I like to &#8216;break&#8217; out of nested loops.<br />
It would really help having a function that would allow that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. Phillip M. Feldman</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-23338</link>
		<dc:creator>Dr. Phillip M. Feldman</dc:creator>
		<pubDate>Sun, 16 Dec 2007 01:38:04 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-23338</guid>
		<description>Turning serious for just a moment: In nested loops, "break" exits only from the loop in which it occurs.  If Matlab had a goto statement, one legitimate application would be to break out of nested loops.  Currently, there is no good way of handling this situation in Matlab.</description>
		<content:encoded><![CDATA[<p>Turning serious for just a moment: In nested loops, &#8220;break&#8221; exits only from the loop in which it occurs.  If Matlab had a goto statement, one legitimate application would be to break out of nested loops.  Currently, there is no good way of handling this situation in Matlab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16366</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Fri, 10 Aug 2007 00:42:39 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16366</guid>
		<description>Huda-

Look into try-catch, and writing functions that are reusable so you can call them from different sites in your code.

--Loren</description>
		<content:encoded><![CDATA[<p>Huda-</p>
<p>Look into try-catch, and writing functions that are reusable so you can call them from different sites in your code.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huda</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16363</link>
		<dc:creator>huda</dc:creator>
		<pubDate>Thu, 09 Aug 2007 22:01:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16363</guid>
		<description>Ok ,What I can  use instead of goto I need it such this command in my code?

THANKS,HUDA</description>
		<content:encoded><![CDATA[<p>Ok ,What I can  use instead of goto I need it such this command in my code?</p>
<p>THANKS,HUDA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16348</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Mon, 06 Aug 2007 11:10:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16348</guid>
		<description>Huda-

There is no GOTO statement in MATLAB.  This was a joke on April Fool's Day.  The command in MATLAB for exit is simply exit.  Perhaps you'd benefit from reading the "Getting Started with MATLAB" guide.

--Loren</description>
		<content:encoded><![CDATA[<p>Huda-</p>
<p>There is no GOTO statement in MATLAB.  This was a joke on April Fool&#8217;s Day.  The command in MATLAB for exit is simply exit.  Perhaps you&#8217;d benefit from reading the &#8220;Getting Started with MATLAB&#8221; guide.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huda</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16346</link>
		<dc:creator>huda</dc:creator>
		<pubDate>Mon, 06 Aug 2007 10:41:25 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16346</guid>
		<description>hello,
please i need example for goto statment in matlab.
and how can use the exit statment in matlab?

thanks</description>
		<content:encoded><![CDATA[<p>hello,<br />
please i need example for goto statment in matlab.<br />
and how can use the exit statment in matlab?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huda</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16345</link>
		<dc:creator>huda</dc:creator>
		<pubDate>Mon, 06 Aug 2007 10:38:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16345</guid>
		<description>hello,
please I need example for goto in matlab.
and how can use Exit statment in matlab?
thanks</description>
		<content:encoded><![CDATA[<p>hello,<br />
please I need example for goto in matlab.<br />
and how can use Exit statment in matlab?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Clark</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16342</link>
		<dc:creator>Tom Clark</dc:creator>
		<pubDate>Fri, 03 Aug 2007 13:41:33 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-16342</guid>
		<description>It seems I'm far far too gullible. 

Maybe I should goto a psychiatrist about it, although in my defence, it's now the 3rd of August.</description>
		<content:encoded><![CDATA[<p>It seems I&#8217;m far far too gullible. </p>
<p>Maybe I should goto a psychiatrist about it, although in my defence, it&#8217;s now the 3rd of August.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Davis</title>
		<link>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-9907</link>
		<dc:creator>Tim Davis</dc:creator>
		<pubDate>Sat, 02 Sep 2006 00:07:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2006/04/01/goto-coming-at-long-last-vectorized-no-less/#comment-9907</guid>
		<description>I think this article is missing a few features.

Combining goto's and function pointers would be very useful.

goto(@f) would jump to the function f without all the messy syntax of input/output arguments.  This would allow the function f to modify its inputs, a sorely needed MATLAB feature.

goto(@f(2:5)) would do the same thing, but would execute only lines 2 to 5 of the function f.

Then of course there would be the command

goto(blas)

which would ditch the standard BLAS and use Goto's BLAS instead.  That's surely the best Goto going.  Being able to switch BLAS at run time would be great, rather than all that messy

setenv BLAS_VERSION /usr/lib/libgoto.so
setenv LAPACK_VERBOSITY

to which we need to add

setenv GOTO_VERBOSITY

which would report every statement a goto goes to.  Perhaps the latter could be achieved if you left off the semicolon, so that

goto(42) ;

is silent, but

goto(42)

would report "Going to line 42 to find the answer to the question of life, the universe, and things in general."

And finally, we can't forget goto's and the symbolic toolbox.  goto('solution') would skip all that messy algorithmic stuff, O(n^3)-time x=A\b when A is dense, and so on.  It would just skip ahead and immediately goto the solution.  Optimization would be specified by goto('max(@f)'), or if you want to minimize your solution, just use goto('min(@f)').

I suppose goto([]) would be a no-op?

Now, if can only come up with a specification for a sparse goto ... what would it mean if you do goto(list) and "list" is a sparse vector?  MATLAB has to do everything the same for both sparse and full, after all.

No more for now, I gotta get my sparse goto going.

Today being April 1 + 0.5 (Sept 1), after all, this is only half as good as a true April 1st spec.</description>
		<content:encoded><![CDATA[<p>I think this article is missing a few features.</p>
<p>Combining goto&#8217;s and function pointers would be very useful.</p>
<p>goto(@f) would jump to the function f without all the messy syntax of input/output arguments.  This would allow the function f to modify its inputs, a sorely needed MATLAB feature.</p>
<p>goto(@f(2:5)) would do the same thing, but would execute only lines 2 to 5 of the function f.</p>
<p>Then of course there would be the command</p>
<p>goto(blas)</p>
<p>which would ditch the standard BLAS and use Goto&#8217;s BLAS instead.  That&#8217;s surely the best Goto going.  Being able to switch BLAS at run time would be great, rather than all that messy</p>
<p>setenv BLAS_VERSION /usr/lib/libgoto.so<br />
setenv LAPACK_VERBOSITY</p>
<p>to which we need to add</p>
<p>setenv GOTO_VERBOSITY</p>
<p>which would report every statement a goto goes to.  Perhaps the latter could be achieved if you left off the semicolon, so that</p>
<p>goto(42) ;</p>
<p>is silent, but</p>
<p>goto(42)</p>
<p>would report &#8220;Going to line 42 to find the answer to the question of life, the universe, and things in general.&#8221;</p>
<p>And finally, we can&#8217;t forget goto&#8217;s and the symbolic toolbox.  goto(&#8217;solution&#8217;) would skip all that messy algorithmic stuff, O(n^3)-time x=A\b when A is dense, and so on.  It would just skip ahead and immediately goto the solution.  Optimization would be specified by goto(&#8217;max(@f)&#8217;), or if you want to minimize your solution, just use goto(&#8217;min(@f)&#8217;).</p>
<p>I suppose goto([]) would be a no-op?</p>
<p>Now, if can only come up with a specification for a sparse goto &#8230; what would it mean if you do goto(list) and &#8220;list&#8221; is a sparse vector?  MATLAB has to do everything the same for both sparse and full, after all.</p>
<p>No more for now, I gotta get my sparse goto going.</p>
<p>Today being April 1 + 0.5 (Sept 1), after all, this is only half as good as a true April 1st spec.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
