<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://chemeng.up.ac.za/wiki/index.php?action=history&amp;feed=atom&amp;title=Common_Matlab%2FOctave_errors</id>
		<title>Common Matlab/Octave errors - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://chemeng.up.ac.za/wiki/index.php?action=history&amp;feed=atom&amp;title=Common_Matlab%2FOctave_errors"/>
		<link rel="alternate" type="text/html" href="http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;action=history"/>
		<updated>2026-05-14T19:11:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=709&amp;oldid=prev</id>
		<title>AndreC: /* Using fsolve */  (incomplete sentence)</title>
		<link rel="alternate" type="text/html" href="http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=709&amp;oldid=prev"/>
				<updated>2010-05-28T09:27:43Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Using fsolve: &lt;/span&gt;  (incomplete sentence)&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:27, 28 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L58&quot; &gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Mistake in equations.&amp;#160; If you can, work out the root manually and substitute the root into your function.&amp;#160; If it does not evaluate to zero, the equation may be wrong.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Mistake in equations.&amp;#160; If you can, work out the root manually and substitute the root into your function.&amp;#160; If it does not evaluate to zero, the equation may be wrong.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Wrong initial guess.&amp;#160; The results that you obtain are highly dependant on your initial guess, so if&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Wrong initial guess.&amp;#160; The results that you obtain are highly dependant on your initial guess, so if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the solver fails to converge consider changing the starting value.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndreC</name></author>	</entry>

	<entry>
		<id>http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=657&amp;oldid=prev</id>
		<title>Alchemyst: spelling error</title>
		<link rel="alternate" type="text/html" href="http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=657&amp;oldid=prev"/>
				<updated>2010-04-21T06:51:42Z</updated>
		
		<summary type="html">&lt;p&gt;spelling error&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:51, 21 April 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; function thisout = functionname (thisin)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; function thisout = functionname (thisin)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;you have to give the output (&amp;lt;tt&amp;gt;thisout&amp;lt;/tt&amp;gt;) a value. Results of calculations stay&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;you have to give the output (&amp;lt;tt&amp;gt;thisout&amp;lt;/tt&amp;gt;) a value. Results of calculations stay&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;within functions unless &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;their &lt;/del&gt;explicitly set to an output.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;within functions unless &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;they are &lt;/ins&gt;explicitly set to an output.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Undefined variables ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Undefined variables ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Alchemyst</name></author>	</entry>

	<entry>
		<id>http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=361&amp;oldid=prev</id>
		<title>137.215.122.240: /* Using fsolve */</title>
		<link rel="alternate" type="text/html" href="http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=361&amp;oldid=prev"/>
				<updated>2009-10-07T06:20:48Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Using fsolve&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:20, 7 October 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L57&quot; &gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fsolve is a numeric root finding routine.&amp;#160; If fsolve is not working for you, you probably have one of the following problems:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fsolve is a numeric root finding routine.&amp;#160; If fsolve is not working for you, you probably have one of the following problems:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/del&gt;Mistake in equations.&amp;#160; If you can, work out the root manually and substitute the root into your function.&amp;#160; If it does not evaluate to zero, the equation may be wrong.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Mistake in equations.&amp;#160; If you can, work out the root manually and substitute the root into your function.&amp;#160; If it does not evaluate to zero, the equation may be wrong.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/del&gt;Wrong initial guess.&amp;#160; The results that you obtain are highly dependant on your initial guess, so if&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Wrong initial guess.&amp;#160; The results that you obtain are highly dependant on your initial guess, so if&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>137.215.122.240</name></author>	</entry>

	<entry>
		<id>http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=359&amp;oldid=prev</id>
		<title>137.215.122.240: /* Common Matlab/Octave */</title>
		<link rel="alternate" type="text/html" href="http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=359&amp;oldid=prev"/>
				<updated>2009-10-07T06:19:07Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Common Matlab/Octave&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:19, 7 October 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Common Matlab/Octave ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Common Matlab/Octave &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;errors &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Function outputs ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Function outputs ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Remember that when you define a function with an output:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Remember that when you define a function with an output:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>137.215.122.240</name></author>	</entry>

	<entry>
		<id>http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=353&amp;oldid=prev</id>
		<title>137.215.122.240 at 08:02, 22 September 2009</title>
		<link rel="alternate" type="text/html" href="http://chemeng.up.ac.za/wiki/index.php?title=Common_Matlab/Octave_errors&amp;diff=353&amp;oldid=prev"/>
				<updated>2009-09-22T08:02:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Common Matlab/Octave ==&lt;br /&gt;
=== Function outputs ===&lt;br /&gt;
Remember that when you define a function with an output:&lt;br /&gt;
 function thisout = functionname (thisin)&lt;br /&gt;
you have to give the output (&amp;lt;tt&amp;gt;thisout&amp;lt;/tt&amp;gt;) a value. Results of calculations stay&lt;br /&gt;
within functions unless their explicitly set to an output.&lt;br /&gt;
&lt;br /&gt;
=== Undefined variables ===&lt;br /&gt;
By default, variables are private to the functions in which they are used. Therefore, if you want&lt;br /&gt;
to use a variable within a function, pass it as an input. If you want to use a variable outside of a&lt;br /&gt;
function, set it as an output.&lt;br /&gt;
&lt;br /&gt;
=== Size of derivative vectors ===&lt;br /&gt;
The following error,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
error: lsode: evaluation of user-supplied function failed&lt;br /&gt;
error: lsode: inconsistent sizes for state and derivative vectors&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
can be caused by two problems - the most likely being a mismatch between your system differentials'&lt;br /&gt;
output size and the starting value vector size, when calling &amp;lt;tt&amp;gt;lsode&amp;lt;/tt&amp;gt;. Make sure that there is&lt;br /&gt;
a starting value for each of the states for which your system function calculates a derivative.&lt;br /&gt;
&lt;br /&gt;
The second case is when you have a derivative output which (for some obscure reason) grows in size &lt;br /&gt;
(dimensions).&lt;br /&gt;
&lt;br /&gt;
=== Strange size errors ===&lt;br /&gt;
A very common error that can be hard to track down is shown below:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
octave&amp;gt; a = [1 -(1+2); 3]&lt;br /&gt;
error: number of columns must match (1 != 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The problem is that Octave is interpreting the - as a negation (making it negative) rather than a subtraction, so there are actually two elements in the first row.  The best way to avoid this problem is to use spaces on both sides of + and - signs at all times.&lt;br /&gt;
&lt;br /&gt;
=== Plotting problems ===&lt;br /&gt;
Most common plotting problem: you plot but &amp;quot;nothing happens&amp;quot;.  The plot window appears but is blank.  You are very probably plotting scalar values instead of vectors.  Check this by repeating the plot using a more visible marker style like &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot(x, y, 's') % squares&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a single dot, you have forgotten to add elements to your vectors.  &lt;br /&gt;
&lt;br /&gt;
A common plotting pattern is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
x = []&lt;br /&gt;
for i = 1:10&lt;br /&gt;
    newx = f(); % newx is calculated somehow&lt;br /&gt;
    x = [x newx]; % add element to vector&lt;br /&gt;
end&lt;br /&gt;
plot(x)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The single dot plot means you have probably forgotten to add elements to the vector, so the code looks like &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
x = newx&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Using fsolve ===&lt;br /&gt;
fsolve is a numeric root finding routine.  If fsolve is not working for you, you probably have one of the following problems:&lt;br /&gt;
&lt;br /&gt;
#. Mistake in equations.  If you can, work out the root manually and substitute the root into your function.  If it does not evaluate to zero, the equation may be wrong.&lt;br /&gt;
#. Wrong initial guess.  The results that you obtain are highly dependant on your initial guess, so if&lt;/div&gt;</summary>
		<author><name>137.215.122.240</name></author>	</entry>

	</feed>