<?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 for File Exchange Pick of the Week</title>
	<link>http://blogs.mathworks.com/pick</link>
	<description>&#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=969735&#38;objectType=author"&#62;Bob&#60;/a&#62;, &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author"&#62;Brett&#60;/a&#62; &#38; &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author"&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<pubDate>Sat, 21 Nov 2009 01:01:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>Comment on Plotting multiple Y scales by Zach</title>
		<link>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13307</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Fri, 20 Nov 2009 18:21:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13307</guid>
		<description>Hi Doug and Les,

I didn't have a lot of time to mess with this, but I did find a work-around.  I plotted all the figures as subplots side-by-side with the same scale on the y-axis.  I consolidated them in the figure editor gui.  It worked pretty well, but unfortunately isn't repeatable like a script would be.  A friend of a friend put together a pretty complicated script that seems to do everything without the subplot and figure editing.  I'll see if I can get permission to post it here for you to see.

Incidentally, the .eps outputs are pretty nice to work with in Illustrator.  The plot can be ungrouped into all it's component parts and manipulated.  I ended up polishing up the figure with this in the end.  

Thanks for your comments - I really appreciate the help!
-Zach</description>
		<content:encoded><![CDATA[<p>Hi Doug and Les,</p>
<p>I didn&#8217;t have a lot of time to mess with this, but I did find a work-around.  I plotted all the figures as subplots side-by-side with the same scale on the y-axis.  I consolidated them in the figure editor gui.  It worked pretty well, but unfortunately isn&#8217;t repeatable like a script would be.  A friend of a friend put together a pretty complicated script that seems to do everything without the subplot and figure editing.  I&#8217;ll see if I can get permission to post it here for you to see.</p>
<p>Incidentally, the .eps outputs are pretty nice to work with in Illustrator.  The plot can be ungrouped into all it&#8217;s component parts and manipulated.  I ended up polishing up the figure with this in the end.  </p>
<p>Thanks for your comments - I really appreciate the help!<br />
-Zach</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MATLAB in Physics by hamed</title>
		<link>http://blogs.mathworks.com/pick/2009/01/30/matlab-in-physics/#comment-13306</link>
		<dc:creator>hamed</dc:creator>
		<pubDate>Wed, 18 Nov 2009 20:39:34 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2009/01/30/matlab-in-physics/#comment-13306</guid>
		<description>k</description>
		<content:encoded><![CDATA[<p>k</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Plotting multiple Y scales by Les</title>
		<link>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13301</link>
		<dc:creator>Les</dc:creator>
		<pubDate>Fri, 13 Nov 2009 18:43:06 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13301</guid>
		<description>@Zach

This isn't exactly what you are looking for but at least it puts all three parameters on the same page with aligned y (depth) axes.

&lt;pre&gt;
subplot(1,3,1)
plot(temp, depth)
xlabel 'temp (deg C)'
ylabel 'depth (km)'
subplot(1,3,2)
plot(density, depth)
xlabel 'density (kg/m3)'
subplot(1,3,3)
plot(viscosity, depth)
xlabel 'viscosity (Pascal*sec)'
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Zach</p>
<p>This isn&#8217;t exactly what you are looking for but at least it puts all three parameters on the same page with aligned y (depth) axes.</p>
<pre>
subplot(1,3,1)
plot(temp, depth)
xlabel 'temp (deg C)'
ylabel 'depth (km)'
subplot(1,3,2)
plot(density, depth)
xlabel 'density (kg/m3)'
subplot(1,3,3)
plot(viscosity, depth)
xlabel 'viscosity (Pascal*sec)'
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Plotting multiple Y scales by Zach</title>
		<link>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13300</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Wed, 11 Nov 2009 23:08:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13300</guid>
		<description>Thanks for your suggestions Doug.  I'll give that a shot and see what happens.  I've seen many of these kinds of plots with depth on the x-axis - perhaps for the same reason that you mentioned.  I may end up plotting each individually and then using Illustrator to compile them all together on one figure (although I don't like the idea of doing that - there should be an easy way!).  In any case, I'll let you know the outcome.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for your suggestions Doug.  I&#8217;ll give that a shot and see what happens.  I&#8217;ve seen many of these kinds of plots with depth on the x-axis - perhaps for the same reason that you mentioned.  I may end up plotting each individually and then using Illustrator to compile them all together on one figure (although I don&#8217;t like the idea of doing that - there should be an easy way!).  In any case, I&#8217;ll let you know the outcome.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Plotting multiple Y scales by Doug</title>
		<link>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13299</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 11 Nov 2009 20:25:05 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13299</guid>
		<description>@Zach,

I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense.  Most user made files that do this focus on making Y the multi-axis.

I think you are best off looking at some of the existing ones for ideas on this, but you will have to write it yourself.

The added complication of 7 series, makes this much tougher.

How about this?  Kinda kludgy...

Normalize all the values from zero to one.  Plot them on the same axis.  This gets you the qualitative comparison.  

Take this a step further:  When you click on a given series, the axis labels will change to be appropriate for that series.  You would not be able to see all of them at once, but any one you wanted easy.  Pretty clean interface, and not bad to implement.

What do you think?

Doug</description>
		<content:encoded><![CDATA[<p>@Zach,</p>
<p>I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense.  Most user made files that do this focus on making Y the multi-axis.</p>
<p>I think you are best off looking at some of the existing ones for ideas on this, but you will have to write it yourself.</p>
<p>The added complication of 7 series, makes this much tougher.</p>
<p>How about this?  Kinda kludgy&#8230;</p>
<p>Normalize all the values from zero to one.  Plot them on the same axis.  This gets you the qualitative comparison.  </p>
<p>Take this a step further:  When you click on a given series, the axis labels will change to be appropriate for that series.  You would not be able to see all of them at once, but any one you wanted easy.  Pretty clean interface, and not bad to implement.</p>
<p>What do you think?</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Advanced MATLAB: Surface plot of nonuniform data by Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/11/02/advanced-matlab-surface-plot-of-nonuniform-data/#comment-13298</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 11 Nov 2009 20:16:21 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/11/02/advanced-matlab-surface-plot-of-nonuniform-data/#comment-13298</guid>
		<description>@Teja,

I think this will work:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/delaunaytriclass.html

Doug</description>
		<content:encoded><![CDATA[<p>@Teja,</p>
<p>I think this will work:</p>
<p><a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/delaunaytriclass.html" rel="nofollow">http://www.mathworks.com/access/helpdesk/help/techdoc/ref/delaunaytriclass.html</a></p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Holiday Cheer! by Gify</title>
		<link>http://blogs.mathworks.com/pick/2008/12/25/holiday-cheer/#comment-13297</link>
		<dc:creator>Gify</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:47:34 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/12/25/holiday-cheer/#comment-13297</guid>
		<description>merry christmas :)
nice christmas  tree!
Regards,
Janet Gify</description>
		<content:encoded><![CDATA[<p>merry christmas :)<br />
nice christmas  tree!<br />
Regards,<br />
Janet Gify</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Advanced MATLAB: Surface plot of nonuniform data by Teja</title>
		<link>http://blogs.mathworks.com/pick/2007/11/02/advanced-matlab-surface-plot-of-nonuniform-data/#comment-13296</link>
		<dc:creator>Teja</dc:creator>
		<pubDate>Wed, 11 Nov 2009 13:17:10 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/11/02/advanced-matlab-surface-plot-of-nonuniform-data/#comment-13296</guid>
		<description>Dear Doug
Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i have topographic information, where the altitude(z) at each x and y is known.
I do not want any interpolation in between. x and y do not form a rectangular grid but are closely spaced.
Thanks</description>
		<content:encoded><![CDATA[<p>Dear Doug<br />
Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i have topographic information, where the altitude(z) at each x and y is known.<br />
I do not want any interpolation in between. x and y do not form a rectangular grid but are closely spaced.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Plotting multiple Y scales by Zach</title>
		<link>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13295</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Wed, 11 Nov 2009 04:08:00 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2006/05/26/plotting-multiple-y-scales/#comment-13295</guid>
		<description>I'm working with geophysical data, so I'd like to produce a depth profile.  The y-axis would be depth, from 0 (surface) down to about 100 km let's say, in increments of 10 km.  At each depth I have calculated various properties, such as density, viscosity, temperature, etc, which would be plotted along the x-axis.  I'd like to create, on one graph, one line for each of these properties, each with their own scale on the x-axis.  Here's a hypothetical example of some data:

depth = [0 10 20 30 40 50 60 70 80 90 100] in kilometers
temp = [25 26 28 29 30 31 31 32 35 37 37] in degrees C
density = [2700 2700 2700 2750 2770 2770 2775 2780 2780 3000 3050] in kg/m3
viscosity = [100 110 120 130 140 150 160 170 180 190 200] Pascal*seconds

As you can see, the scales for each property along the x-axis are very different.  Is this the kind of sample data you're asking about?  Here are some figures that are close to what I'm thinking: 
http://www.ats-intl.com/expertise/images/geophysics-BG2.jpg
http://geophysics.eas.gatech.edu/people/anewman/classes/Geodynamics/misc/prem_earth.pdf

Your help is much appreciated, thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m working with geophysical data, so I&#8217;d like to produce a depth profile.  The y-axis would be depth, from 0 (surface) down to about 100 km let&#8217;s say, in increments of 10 km.  At each depth I have calculated various properties, such as density, viscosity, temperature, etc, which would be plotted along the x-axis.  I&#8217;d like to create, on one graph, one line for each of these properties, each with their own scale on the x-axis.  Here&#8217;s a hypothetical example of some data:</p>
<p>depth = [0 10 20 30 40 50 60 70 80 90 100] in kilometers<br />
temp = [25 26 28 29 30 31 31 32 35 37 37] in degrees C<br />
density = [2700 2700 2700 2750 2770 2770 2775 2780 2780 3000 3050] in kg/m3<br />
viscosity = [100 110 120 130 140 150 160 170 180 190 200] Pascal*seconds</p>
<p>As you can see, the scales for each property along the x-axis are very different.  Is this the kind of sample data you&#8217;re asking about?  Here are some figures that are close to what I&#8217;m thinking:<br />
<a href="http://www.ats-intl.com/expertise/images/geophysics-BG2.jpg" rel="nofollow">http://www.ats-intl.com/expertise/images/geophysics-BG2.jpg</a><br />
<a href="http://geophysics.eas.gatech.edu/people/anewman/classes/Geodynamics/misc/prem_earth.pdf" rel="nofollow">http://geophysics.eas.gatech.edu/people/anewman/classes/Geodynamics/misc/prem_earth.pdf</a></p>
<p>Your help is much appreciated, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MATLAB Basics video: Storing data in a matrix from a loop by Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/08/20/matlab-basics-video/#comment-13294</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:15:25 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/08/20/matlab-basics-video/#comment-13294</guid>
		<description>@Ashok

First, please do not use variable names that are MATLAB commands (std and mean).

Second, p(j) should be p(i)

Third, look at this line of code:

p(j) = mean(i) + std(i)*randn(100,1);

This says

The jth element of the matrix p should be the sum of a scalar(mean(i)) and a vector(std(i)*randn(100,1)).

This does not make sense to put a vector into the element of a matrix.

Fourth, usually asking for user input like that is slow, and causes trouble since people can type anything.

Enjoy,
Doug</description>
		<content:encoded><![CDATA[<p>@Ashok</p>
<p>First, please do not use variable names that are MATLAB commands (std and mean).</p>
<p>Second, p(j) should be p(i)</p>
<p>Third, look at this line of code:</p>
<p>p(j) = mean(i) + std(i)*randn(100,1);</p>
<p>This says</p>
<p>The jth element of the matrix p should be the sum of a scalar(mean(i)) and a vector(std(i)*randn(100,1)).</p>
<p>This does not make sense to put a vector into the element of a matrix.</p>
<p>Fourth, usually asking for user input like that is slow, and causes trouble since people can type anything.</p>
<p>Enjoy,<br />
Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>
