<?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: Printing hyperlinks to the Command Window</title>
	<atom:link href="http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/</link>
	<description>Mike works on the MATLAB Desktop team</description>
	<lastBuildDate>Tue, 14 Feb 2012 21:36:46 +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/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7936</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 11 Jul 2011 14:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7936</guid>
		<description>Chris,

You just need to put the interesting text in the link, using (s/f)printf or using array concatenation in disp.

E.g.
&lt;pre class=&quot;code&quot;&gt;
for i=1:3
    fprintf(&#039;This is a link #%i &lt;a href=&quot;http://www.google.com/#q=number%i&quot; rel=&quot;nofollow&quot;&gt;Google for %i&lt;/a&gt;.\n&#039;,i,i,i)
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>You just need to put the interesting text in the link, using (s/f)printf or using array concatenation in disp.</p>
<p>E.g.</p>
<pre class="code">
for i=1:3
    fprintf('This is a link #%i &lt;a href="http://www.google.com/#q=number%i" rel="nofollow"&gt;Google for %i&lt;/a&gt;.\n',i,i,i)
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7931</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 08 Jul 2011 16:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7931</guid>
		<description>I am trying to use the matlabcolon methodology described above to display hyperlinks to the command window, where my HYPERLINK_TEXT is not constant string, but rather changes dynamically in a FOR loop.  This is because I want to print out hyperlinks for a number of data files dynamically. So far I have not been able to do this.  Is this possible?</description>
		<content:encoded><![CDATA[<p>I am trying to use the matlabcolon methodology described above to display hyperlinks to the command window, where my HYPERLINK_TEXT is not constant string, but rather changes dynamically in a FOR loop.  This is because I want to print out hyperlinks for a number of data files dynamically. So far I have not been able to do this.  Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Armyr</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7835</link>
		<dc:creator>Daniel Armyr</dc:creator>
		<pubDate>Mon, 20 Jun 2011 12:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7835</guid>
		<description>Oh.
Just found the answer in a much newer post: Replacing the above line with 
&lt;pre&gt;disp(&#039;You should &lt;a href=&quot;matlab:matlab.desktop.editor.openAndGoToLine(which(&#039;&#039;why.m&#039;&#039;),27)&quot;&gt;open my file&lt;/a&gt;!&#039;)&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Oh.<br />
Just found the answer in a much newer post: Replacing the above line with </p>
<pre>disp('You should &lt;a href="matlab:matlab.desktop.editor.openAndGoToLine(which(''why.m''),27)"&gt;open my file&lt;/a&gt;!')</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Armyr</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7834</link>
		<dc:creator>Daniel Armyr</dc:creator>
		<pubDate>Mon, 20 Jun 2011 09:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7834</guid>
		<description>Hi.
I found this blog post a few months ago and started using this trick in several functions where one might want to quickly find the piece of code that printed the output. 

Now that I upgraded to Matlab 2011a, the code does not work any more. 

This code: &lt;pre&gt;
disp(&#039;You should &amp;lta href=&quot;matlab: opentoline(which(&#039;&#039;why.m&#039;&#039;),27)&quot;&gt;open my file&amp;lt/a&gt;!&#039;)&lt;/pre&gt;

Gives me the following message:
&quot;File c:\...\which(&#039;why.m&#039;) does not exist. [...]&quot;

Indicating that the contents of the first parentesis are taken as a literal string and are not evaluated as Matlab code. Does anyone have a workaround, because the hyperlink thing was really useful.</description>
		<content:encoded><![CDATA[<p>Hi.<br />
I found this blog post a few months ago and started using this trick in several functions where one might want to quickly find the piece of code that printed the output. </p>
<p>Now that I upgraded to Matlab 2011a, the code does not work any more. </p>
<p>This code:
<pre>
disp('You should &amp;lta href="matlab: opentoline(which(''why.m''),27)"&gt;open my file&amp;lt/a&gt;!')</pre>
</p><p>Gives me the following message:<br />
&#8220;File c:\&#8230;\which(&#8216;why.m&#8217;) does not exist. [...]&#8220;</p>
<p>Indicating that the contents of the first parentesis are taken as a literal string and are not evaluated as Matlab code. Does anyone have a workaround, because the hyperlink thing was really useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdrianC</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7628</link>
		<dc:creator>AdrianC</dc:creator>
		<pubDate>Mon, 28 Feb 2011 22:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7628</guid>
		<description>Hi,
After I create a hyperlink, I want to be able to click on the link automatically so I dont have to do it manually.  The link will be to an image from an IP camera, and ideally I would like to save the resulting image.  My aim is to write software that records jpegs from an IP camera at X frames per second.  Has anyone done something like this?
Thanks,
Adrian</description>
		<content:encoded><![CDATA[<p>Hi,<br />
After I create a hyperlink, I want to be able to click on the link automatically so I dont have to do it manually.  The link will be to an image from an IP camera, and ideally I would like to save the resulting image.  My aim is to write software that records jpegs from an IP camera at X frames per second.  Has anyone done something like this?<br />
Thanks,<br />
Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nic</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7493</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Tue, 14 Dec 2010 17:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7493</guid>
		<description>Thanks jiro - so many bits and pieces to learn!</description>
		<content:encoded><![CDATA[<p>Thanks jiro &#8211; so many bits and pieces to learn!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jiro</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7492</link>
		<dc:creator>jiro</dc:creator>
		<pubDate>Tue, 14 Dec 2010 12:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7492</guid>
		<description>@Nic,

You should be able to do this:

&lt;code&gt;disp(&#039;&lt;a href=&quot;matlab:winopen(&#039;&#039;C:\&#039;&#039;)&quot;&gt;Go to data directory&lt;/a&gt;&#039;)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@Nic,</p>
<p>You should be able to do this:</p>
<p><code>disp('&lt;a href="matlab:winopen(''C:\'')"&gt;Go to data directory&lt;/a&gt;')</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nic</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7491</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Tue, 14 Dec 2010 12:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7491</guid>
		<description>Apologies for this - I have found a solution but the issue was with my own function. 

In case someone is interested - here is a piece of code that creates a hyperlink to open windows explorer to a particular folder, in this case the c drive:

disp(&#039;&lt;a href=&quot;matlab:dos(&#039;&#039;explorer.exe /e, c:\, &amp;&#039;&#039;)&quot;&gt;Go to data directory&lt;/a&gt;&#039;)

note: including &#039;&amp;&#039; in the dos command input, returns to matlab immediately and the busy state is not an issue.</description>
		<content:encoded><![CDATA[<p>Apologies for this &#8211; I have found a solution but the issue was with my own function. </p>
<p>In case someone is interested &#8211; here is a piece of code that creates a hyperlink to open windows explorer to a particular folder, in this case the c drive:</p>
<p>disp(&#8216;&lt;a href=&#8221;matlab:dos(&#8221;explorer.exe /e, c:\, &amp;&#8221;)&#8221;&gt;Go to data directory&lt;/a&gt;&#8217;)</p>
<p>note: including &#8216;&amp;&#8217; in the dos command input, returns to matlab immediately and the busy state is not an issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nic</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7490</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Tue, 14 Dec 2010 11:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7490</guid>
		<description>One more time...

disp(&#039;&lt;a href=&quot;matlab:winExplorer(&#039;&#039;c:\&#039;&#039;)&quot;&gt;Go to directory&lt;/a&gt;&#039;)</description>
		<content:encoded><![CDATA[<p>One more time&#8230;</p>
<p>disp(&#8216;&lt;a href=&#8221;matlab:winExplorer(&#8221;c:\&#8221;)&#8221;&gt;Go to directory&lt;/a&gt;&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nic</title>
		<link>http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7489</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Tue, 14 Dec 2010 11:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/#comment-7489</guid>
		<description>Might be easier if you can see the code:

disp(&#039;&lt;a href=&quot;winExplorer(&#039;&#039;c:\ntemp&#039;&#039;);&quot; rel=&quot;nofollow&quot;&gt;Go to data directory&lt;/a&gt;&#039;)</description>
		<content:encoded><![CDATA[<p>Might be easier if you can see the code:</p>
<p>disp(&#8216;<a href="winExplorer(''c:\ntemp'');" rel="nofollow">Go to data directory</a>&#8216;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

