<?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: Advanced MATLAB: Varargin and Nargin- variable inputs to a function</title>
	<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/</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>Mon, 23 Nov 2009 00:11:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13121</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 03 Apr 2009 17:39:38 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13121</guid>
		<description>Seun,

For us to give you some help, you will need to show us what you tried, in code.  There are many things that could have been done incorrectly.  The data you have shown would plot well.  

Doug</description>
		<content:encoded><![CDATA[<p>Seun,</p>
<p>For us to give you some help, you will need to show us what you tried, in code.  There are many things that could have been done incorrectly.  The data you have shown would plot well.  </p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seun</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13120</link>
		<dc:creator>Seun</dc:creator>
		<pubDate>Fri, 03 Apr 2009 17:33:15 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13120</guid>
		<description>Thanks for your reply, I tried the steps you had in your tutorial, I actually don't know how to use matlab so I am learning on the go. 

I have been able to import the data but when i try to plot the graph i seem to get line graphs which are not correct. 

I have posted sample data below so i can explain better what i am trying to plot

I will go over the links you sent again.

Thanks

x-Height
y-Ergo_Index, Ergo_Index_+Sta. Dev., Ergo_Index_-Sta. Dev.
z-Distance

Height	Distance Ergo_Index Eg_Index_+SDev. Erg_Index_-SDev.
1	1	8.02810	8.48252	7.57368
1	1	7.23410	7.68852	6.77968
1	1	6.77290	7.22732	6.31848
1	1	7.26650	7.72092	6.81208
1	1	7.85150	8.30592	7.39708
1	1	7.44710	7.90152	6.99268
1	2	6.85090	7.92199	5.77981
1	2	7.54950	8.62059	6.47841
1	2	8.84650	9.91759	7.77541
1	2	7.35340	8.42449	6.28231
1	2	9.51260	10.58369	8.44151
1	2	8.99790	10.06899	7.92681
1	3	7.90830	8.11751	7.69909
1	3	7.92300	8.13221	7.71379
1	3	7.99560	8.20481	7.78639
1	3	8.15680	8.36601	7.94759
1	3	7.87130	8.08051	7.66209
1	3	8.08800	8.29721	7.87879
1	3	8.34180	8.55101	8.13259
1	3	7.64370	7.85291	7.43449
2	1	9.67030	10.07334	9.26726
2	1	8.95520	9.35824	8.55216
2	1	8.68640	9.08944	8.28336
2	1	8.75610	9.15914	8.35306
2	1	8.99480	9.39784	8.59176
2	1	9.44720	9.85024	9.04416
2	1	9.73000	10.13304	9.32696
2	1	9.30680	9.70984	8.90376
2	2	7.59970	7.85001	7.34939
2	2	7.38770	7.63801	7.13739
2	2	7.45730	7.70761	7.20699
2	2	7.86410	8.11441	7.61379
2	2	7.61410	7.86441	7.36379
2	2	7.70390	7.95421	7.45359
2	2	8.15410	8.40441	7.90379
2	2	7.87890	8.12921	7.62859
3	3	7.28780	7.86754	6.70806
3	3	7.57240	8.15214	6.99266
3	3	8.52170	9.10144	7.94196
3	3	7.88650	8.46624	7.30676
3	3	7.39120	7.97094	6.81146
3	3	8.50380	9.08354	7.92406
3	3	8.30720	8.88694	7.72746
3	3	8.81800	9.39774	8.23826</description>
		<content:encoded><![CDATA[<p>Thanks for your reply, I tried the steps you had in your tutorial, I actually don&#8217;t know how to use matlab so I am learning on the go. </p>
<p>I have been able to import the data but when i try to plot the graph i seem to get line graphs which are not correct. </p>
<p>I have posted sample data below so i can explain better what i am trying to plot</p>
<p>I will go over the links you sent again.</p>
<p>Thanks</p>
<p>x-Height<br />
y-Ergo_Index, Ergo_Index_+Sta. Dev., Ergo_Index_-Sta. Dev.<br />
z-Distance</p>
<p>Height	Distance Ergo_Index Eg_Index_+SDev. Erg_Index_-SDev.<br />
1	1	8.02810	8.48252	7.57368<br />
1	1	7.23410	7.68852	6.77968<br />
1	1	6.77290	7.22732	6.31848<br />
1	1	7.26650	7.72092	6.81208<br />
1	1	7.85150	8.30592	7.39708<br />
1	1	7.44710	7.90152	6.99268<br />
1	2	6.85090	7.92199	5.77981<br />
1	2	7.54950	8.62059	6.47841<br />
1	2	8.84650	9.91759	7.77541<br />
1	2	7.35340	8.42449	6.28231<br />
1	2	9.51260	10.58369	8.44151<br />
1	2	8.99790	10.06899	7.92681<br />
1	3	7.90830	8.11751	7.69909<br />
1	3	7.92300	8.13221	7.71379<br />
1	3	7.99560	8.20481	7.78639<br />
1	3	8.15680	8.36601	7.94759<br />
1	3	7.87130	8.08051	7.66209<br />
1	3	8.08800	8.29721	7.87879<br />
1	3	8.34180	8.55101	8.13259<br />
1	3	7.64370	7.85291	7.43449<br />
2	1	9.67030	10.07334	9.26726<br />
2	1	8.95520	9.35824	8.55216<br />
2	1	8.68640	9.08944	8.28336<br />
2	1	8.75610	9.15914	8.35306<br />
2	1	8.99480	9.39784	8.59176<br />
2	1	9.44720	9.85024	9.04416<br />
2	1	9.73000	10.13304	9.32696<br />
2	1	9.30680	9.70984	8.90376<br />
2	2	7.59970	7.85001	7.34939<br />
2	2	7.38770	7.63801	7.13739<br />
2	2	7.45730	7.70761	7.20699<br />
2	2	7.86410	8.11441	7.61379<br />
2	2	7.61410	7.86441	7.36379<br />
2	2	7.70390	7.95421	7.45359<br />
2	2	8.15410	8.40441	7.90379<br />
2	2	7.87890	8.12921	7.62859<br />
3	3	7.28780	7.86754	6.70806<br />
3	3	7.57240	8.15214	6.99266<br />
3	3	8.52170	9.10144	7.94196<br />
3	3	7.88650	8.46624	7.30676<br />
3	3	7.39120	7.97094	6.81146<br />
3	3	8.50380	9.08354	7.92406<br />
3	3	8.30720	8.88694	7.72746<br />
3	3	8.81800	9.39774	8.23826</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13119</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 03 Apr 2009 17:12:41 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13119</guid>
		<description>Seun,

There are a few steps to this process, it is not clear to me what you are having problems with.

1.) Import data from Excel. 
http://blogs.mathworks.com/videos/category/excel/

2.) Doing a 3-d bar graph. 
http://www.mathworks.com/matlabcentral/fileexchange/23439

3.) Adding more visualization to a standard plot type.
http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f7-20419.html


What have you tried, and specifically where are you stuck?

-Doug</description>
		<content:encoded><![CDATA[<p>Seun,</p>
<p>There are a few steps to this process, it is not clear to me what you are having problems with.</p>
<p>1.) Import data from Excel.<br />
<a href="http://blogs.mathworks.com/videos/category/excel/" rel="nofollow">http://blogs.mathworks.com/videos/category/excel/</a></p>
<p>2.) Doing a 3-d bar graph.<br />
<a href="http://www.mathworks.com/matlabcentral/fileexchange/23439" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/23439</a></p>
<p>3.) Adding more visualization to a standard plot type.<br />
<a href="http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f7-20419.html" rel="nofollow">http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f7-20419.html</a></p>
<p>What have you tried, and specifically where are you stuck?</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seun</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13118</link>
		<dc:creator>Seun</dc:creator>
		<pubDate>Fri, 03 Apr 2009 17:04:35 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13118</guid>
		<description>Hi Doug,

Sorry to trouble you, I am trying to plot a 3axis(XYZ) bar graph with some data I have in excel, would attach the data here but it doesn't seem possible to. 

x-Height
y-Ergo_Index
z-Distance

I also want to plot the mean, standard deviation +/- of the Ergo_Index on the same graph. 

Could you point me in the right direction, I am not too good at matlab, I have tried the gui method to do this but never seem to get a suitable graph or one in 3d either.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>Sorry to trouble you, I am trying to plot a 3axis(XYZ) bar graph with some data I have in excel, would attach the data here but it doesn&#8217;t seem possible to. </p>
<p>x-Height<br />
y-Ergo_Index<br />
z-Distance</p>
<p>I also want to plot the mean, standard deviation +/- of the Ergo_Index on the same graph. </p>
<p>Could you point me in the right direction, I am not too good at matlab, I have tried the gui method to do this but never seem to get a suitable graph or one in 3d either.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13115</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 01 Apr 2009 20:48:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13115</guid>
		<description>Siva,

Please post the actual code, the function, and how you call it.  You can simplify the function so it is shorter for this purpose.

Doug</description>
		<content:encoded><![CDATA[<p>Siva,</p>
<p>Please post the actual code, the function, and how you call it.  You can simplify the function so it is shorter for this purpose.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13114</link>
		<dc:creator>siva</dc:creator>
		<pubDate>Tue, 31 Mar 2009 11:06:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-13114</guid>
		<description>i have a doubt in using varargin. if i give this as it is in the calling function, i get "Attempted to execute script varargin as a function". if i omit varargin, it gives the error as "One or more output arguments not assigned during call to...". what should i have to do? plz send the answer to my mail soon. thanks in advance</description>
		<content:encoded><![CDATA[<p>i have a doubt in using varargin. if i give this as it is in the calling function, i get &#8220;Attempted to execute script varargin as a function&#8221;. if i omit varargin, it gives the error as &#8220;One or more output arguments not assigned during call to&#8230;&#8221;. what should i have to do? plz send the answer to my mail soon. thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiro</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-10315</link>
		<dc:creator>Jiro</dc:creator>
		<pubDate>Sat, 29 Mar 2008 13:39:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-10315</guid>
		<description>dylan,

Make sure you are using (curly) braces and not parentheses:

&lt;code&gt;alpha = varargin{1}
&lt;/code&gt;

"varargin" is a cell array, so you need to use braces to get the contents of each element. Parentheses will only give you back the element as a cell.</description>
		<content:encoded><![CDATA[<p>dylan,</p>
<p>Make sure you are using (curly) braces and not parentheses:</p>
<p><code>alpha = varargin{1}<br />
</code></p>
<p>&#8220;varargin&#8221; is a cell array, so you need to use braces to get the contents of each element. Parentheses will only give you back the element as a cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dylan</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-10299</link>
		<dc:creator>dylan</dc:creator>
		<pubDate>Sat, 29 Mar 2008 03:27:01 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-10299</guid>
		<description>i followed your code exactly and i get the following error:
&#62;&#62; main(1)
??? Undefined function or method 'mtimes' for input arguments of type 'cell'.

Error in ==&#62; main at 19
out=alpha * beta;</description>
		<content:encoded><![CDATA[<p>i followed your code exactly and i get the following error:<br />
&gt;&gt; main(1)<br />
??? Undefined function or method &#8216;mtimes&#8217; for input arguments of type &#8216;cell&#8217;.</p>
<p>Error in ==&gt; main at 19<br />
out=alpha * beta;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca Balbi</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-8385</link>
		<dc:creator>Luca Balbi</dc:creator>
		<pubDate>Fri, 11 Jan 2008 06:59:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-8385</guid>
		<description>Hello Doug, great work as always!

I think that the recent introduction of the inputParser object has made things evolve a bit with respect to the nargin approach.
Have you ever thought about creating a video with a demo of inputParser?</description>
		<content:encoded><![CDATA[<p>Hello Doug, great work as always!</p>
<p>I think that the recent introduction of the inputParser object has made things evolve a bit with respect to the nargin approach.<br />
Have you ever thought about creating a video with a demo of inputParser?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-8345</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 09 Jan 2008 17:26:48 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/01/08/advanced-matlab-varargin-and-nargin-variable-inputs-to-a-function/#comment-8345</guid>
		<description>Justin,

You can use num2str to make a number into text.  You can have a function output be string if that is what you want.

Doug</description>
		<content:encoded><![CDATA[<p>Justin,</p>
<p>You can use num2str to make a number into text.  You can have a function output be string if that is what you want.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>
