<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Engineer Sphere &#187; MATLAB</title>
	<atom:link href="http://engineersphere.com/category/matlab/feed" rel="self" type="application/rss+xml" />
	<link>http://engineersphere.com</link>
	<description>All the cool kids are doing it.</description>
	<lastBuildDate>Thu, 08 Jul 2010 03:23:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Root Locus Method in MATLAB</title>
		<link>http://engineersphere.com/matlab/root-locus-method-in-matlab.html</link>
		<comments>http://engineersphere.com/matlab/root-locus-method-in-matlab.html#comments</comments>
		<pubDate>Tue, 13 Oct 2009 15:43:19 +0000</pubDate>
		<dc:creator>Papa_Smurf</dc:creator>
				<category><![CDATA[Control Systems]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[Root Locus]]></category>
		<category><![CDATA[root locus matlab]]></category>
		<category><![CDATA[root locus method]]></category>

		<guid isPermaLink="false">http://engineersphere.com/?p=1025</guid>
		<description><![CDATA[To start out, setup the open loop transfer function. Next, you can choose to set up the MATLAB code in a few different ways. First make sure that both the numerator and denominator are in acceptable forms. [1 2 3] is the same as saying Using an example: We can write the numerator and denominator MATLAB codes as: &#62;&#62;numerator=[1]; [...]]]></description>
			<content:encoded><![CDATA[<p>To start out, setup the open loop transfer function.</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=G%28s%29H%28s%29%20%3D%20%5Cfrac%7BK%2A%28numerator%29%7D%7B%28denominator%29%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='G(s)H(s) = \frac{K*(numerator)}{(denominator)} ' title='G(s)H(s) = \frac{K*(numerator)}{(denominator)} ' class='latex' /></p>
<p>Next, you can choose to set up the MATLAB code in a few different ways. First make sure that both the numerator and denominator are in acceptable forms.</p>
<p style="text-align: center;">[1 2 3] is the same as saying <img src='http://s.wordpress.com/latex.php?latex=s%5E%7B2%7D%2B2s%2B3%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='s^{2}+2s+3 ' title='s^{2}+2s+3 ' class='latex' /></p>
<p>Using an example:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=G%28s%29H%28s%29%20%3D%20%5Cfrac%7BK%7D%7B%28s%2B8%29%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='G(s)H(s) = \frac{K}{(s+8)} ' title='G(s)H(s) = \frac{K}{(s+8)} ' class='latex' /></p>
<p>We can write the numerator and denominator MATLAB codes as:</p>
<p>&gt;&gt;numerator=[1];</p>
<p>&gt;&gt;denominator=[1 8];</p>
<p>For a more complex problem we can bypass the long and tedious expansion process and use the convolution function in MATLAB.</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=G%28s%29H%28s%29%3D%5Cfrac%7BK%7D%7B%28s%2B1%29%28s%5E2%2B6s%2B18%29%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='G(s)H(s)=\frac{K}{(s+1)(s^2+6s+18)} ' title='G(s)H(s)=\frac{K}{(s+1)(s^2+6s+18)} ' class='latex' /></p>
<p style="text-align: left;">Here, the denominator is also represented by (s+1)*(s+3+3j)*(s+3-3j). Being three seperate parts, we can use convolution once for two of them, then use convolution again with the remaining part. Just look at the example:</p>
<p style="text-align: center;">conv( A , conv( B , C ) )  &#8212;&gt; denominator = conv( [1 1], conv( [1 3+3*j], [1 3-3*j] ) );</p>
<p style="text-align: left;">After we define our numerator and denominator in MATLAB, we can use the root locus function then set our axis parameters as follows.</p>
<p style="text-align: center;">&gt;&gt;rlocus( numerator, denominator )</p>
<p style="text-align: center;">&gt;&gt;axis([-10 10 -10 10])</p>
<p>Your plot should look similar to the following for this example:</p>
<p><img class="aligncenter size-full wp-image-1039" title="rootlocus" src="http://engineersphere.com/wp-content/uploads/2009/10/rootlocus1.jpg" alt="rootlocus" width="560" height="420" /></p>
<p style="text-align: center;">
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://engineersphere.com/basic-electrical-concepts/complex-numbers.html" rel="bookmark" class="crp_title">Complex Numbers</a></li><li><a href="http://engineersphere.com/basic-electrical-concepts/electrical-power.html" rel="bookmark" class="crp_title">Electrical Power</a></li><li><a href="http://engineersphere.com/basic-electrical-concepts/current-divider.html" rel="bookmark" class="crp_title">Current Divider</a></li><li><a href="http://engineersphere.com/biomedical-engineering/biomedical-image-processing-ii.html" rel="bookmark" class="crp_title">Biomedical Image Processing &#8211; II</a></li><li><a href="http://engineersphere.com/biomedical-engineering/biomedical-image-processing-iii.html" rel="bookmark" class="crp_title">Biomedical Image Processing &#8211; III</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://engineersphere.com/matlab/root-locus-method-in-matlab.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vector Dot Product</title>
		<link>http://engineersphere.com/math/calculus/vector-dot-product.html</link>
		<comments>http://engineersphere.com/math/calculus/vector-dot-product.html#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:29:51 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Calculus]]></category>
		<category><![CDATA[Electromagnetic Theory]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Statics]]></category>
		<category><![CDATA[dot product]]></category>
		<category><![CDATA[dot product angle]]></category>
		<category><![CDATA[find dot product]]></category>
		<category><![CDATA[vector angle]]></category>
		<category><![CDATA[vector dot product]]></category>
		<category><![CDATA[vectors]]></category>

		<guid isPermaLink="false">http://engineersphere.com/?p=800</guid>
		<description><![CDATA[Another simple review of the vector dot product, for those of you that have forgotten.  The operation that involves multiplying two vectors together can be done in a few ways.  The first operation is called either the scalar product or the dot product.  One of the well known definitions looks like this: RULE 1: This [...]]]></description>
			<content:encoded><![CDATA[<p>Another simple review of the vector dot product, for those of you that have forgotten.  The operation that involves multiplying two vectors together can be done in a few ways.  The first operation is called either the scalar product or the dot product.  One of the well known definitions looks like this:</p>
<p>RULE 1: <img src='http://s.wordpress.com/latex.php?latex=A%20%5Ccdot%20B%20%5Cequiv%20%7CA%7C%7CB%7Ccos%28%5CTheta%29%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='A \cdot B \equiv |A||B|cos(\Theta) ' title='A \cdot B \equiv |A||B|cos(\Theta) ' class='latex' /></p>
<p>This is a scalar product that is equal to the two magnitudes multiplied together and multiplied by the cosine of the angle between them.  If  the two vectors are perpendicular to each other then the angle between them is 90 degrees, which will make the dot product equal zero.  This is an equivalent equation.</p>
<p>RULE 2: <img src='http://s.wordpress.com/latex.php?latex=A%20%5Ccdot%20B%20%5Cequiv%20A_%7Bx%7DB_%7Bx%7D%20%2B%20A_%7By%7DB_%7By%7D%20%2B%20A_%7Bz%7DB_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='A \cdot B \equiv A_{x}B_{x} + A_{y}B_{y} + A_{z}B_{z} ' title='A \cdot B \equiv A_{x}B_{x} + A_{y}B_{y} + A_{z}B_{z} ' class='latex' /></p>
<p>When you finish your dot product, you should have a number, not a directional vector.  So if you get something like this you did something wrong: <img src='http://s.wordpress.com/latex.php?latex=3%20u_%7Bx%7D%20%2B%202%20u_%7By%7D%20-%205%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='3 u_{x} + 2 u_{y} - 5 u_{z} ' title='3 u_{x} + 2 u_{y} - 5 u_{z} ' class='latex' />.  If you ended up with <img src='http://s.wordpress.com/latex.php?latex=A%20%5Ccdot%20B%20%3D%2035%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='A \cdot B = 35 ' title='A \cdot B = 35 ' class='latex' /> (any #) then you don&#8217;t have to completely rule out your answer.</p>
<p>A few vectors to practice with:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=A%20%3D%202%20u_%7Bx%7D%20-%203%20u_%7By%7D%20%2B%205%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='A = 2 u_{x} - 3 u_{y} + 5 u_{z} ' title='A = 2 u_{x} - 3 u_{y} + 5 u_{z} ' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=B%20%3D%20u_%7Bx%7D%20-%202%20u_%7By%7D%20%2B%202%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='B = u_{x} - 2 u_{y} + 2 u_{z} ' title='B = u_{x} - 2 u_{y} + 2 u_{z} ' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=%7CA%7C%20%3D%20%5Csqrt%7B%282%29%5E%7B2%7D%20%2B%20%28-3%29%5E%7B2%7D%20%2B%20%285%29%5E%7B2%7D%7D%20%3D%20%5Csqrt%7B38%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='|A| = \sqrt{(2)^{2} + (-3)^{2} + (5)^{2}} = \sqrt{38} ' title='|A| = \sqrt{(2)^{2} + (-3)^{2} + (5)^{2}} = \sqrt{38} ' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=%7CB%7C%20%3D%20%5Csqrt%7B%281%29%5E%7B2%7D%20%2B%20%28-2%29%5E%7B2%7D%20%2B%20%282%29%5E%7B2%7D%7D%20%3D%203%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='|B| = \sqrt{(1)^{2} + (-2)^{2} + (2)^{2}} = 3 ' title='|B| = \sqrt{(1)^{2} + (-2)^{2} + (2)^{2}} = 3 ' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=A%20%5Ccdot%20B%20%3D%20%282%29%281%29%20%2B%20%28-3%29%28-2%29%20%2B%20%285%29%282%29%20%3D%2018%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='A \cdot B = (2)(1) + (-3)(-2) + (5)(2) = 18 ' title='A \cdot B = (2)(1) + (-3)(-2) + (5)(2) = 18 ' class='latex' /></p>
<p>Okay, now we have found our dot product by applying RULE 2 above.  We can use this value along with our individual vector magnitudes to apply RULE 1 and obtain the angle <img src='http://s.wordpress.com/latex.php?latex=%5CTheta%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='\Theta ' title='\Theta ' class='latex' />.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5CTheta%20%3D%20%5Carccos%28%5Cfrac%7BA%20%5Ccdot%20B%7D%7B%7CA%7C%7CB%7C%7D%29%20%3D%2018.26%20%5Ccdot%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='\Theta = \arccos(\frac{A \cdot B}{|A||B|}) = 18.26 \cdot ' title='\Theta = \arccos(\frac{A \cdot B}{|A||B|}) = 18.26 \cdot ' class='latex' /></p>
<p>We can calculate the projection of the vector A onto the vector B by this relationship:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=proj_%7BB%7D%20A%20%3D%20%5Cfrac%7BA%20%5Ccdot%20B%7D%7B%7CB%7C%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='proj_{B} A = \frac{A \cdot B}{|B|} ' title='proj_{B} A = \frac{A \cdot B}{|B|} ' class='latex' /></p>
<p>Note that this is a scalar quantity, and that we can also define the projection of B onto vector A in a similar fashion:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=proj_%7BA%7D%20B%20%3D%20%5Cfrac%7BA%20%5Ccdot%20B%7D%7B%7CA%7C%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='proj_{A} B = \frac{A \cdot B}{|A|} ' title='proj_{A} B = \frac{A \cdot B}{|A|} ' class='latex' /></p>
<p>Perform a dot product in MATLAB like so:</p>
<p>&gt;&gt;A = [ 1 2 3];</p>
<p>&gt;&gt;B = [2 3 4];</p>
<p>&gt;&gt;dot(A,B)</p>
<p>Enjoy</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://engineersphere.com/math/calculus/adding-and-subtracting-vectors.html" rel="bookmark" class="crp_title">Adding and Subtracting Vectors</a></li><li><a href="http://engineersphere.com/math/unit-vector-between-two-points.html" rel="bookmark" class="crp_title">Unit Vector Between Two Points</a></li><li><a href="http://engineersphere.com/math/conversions-between-cartesian-cylindrical-and-spherical-coordinates.html" rel="bookmark" class="crp_title">Conversions Between Cartesian, Cylindrical and Spherical Coordinates</a></li><li><a href="http://engineersphere.com/basic-electrical-concepts/inductors.html" rel="bookmark" class="crp_title">Inductors</a></li><li><a href="http://engineersphere.com/basic-electrical-concepts/complex-numbers.html" rel="bookmark" class="crp_title">Complex Numbers</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://engineersphere.com/math/calculus/vector-dot-product.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding and Subtracting Vectors</title>
		<link>http://engineersphere.com/math/calculus/adding-and-subtracting-vectors.html</link>
		<comments>http://engineersphere.com/math/calculus/adding-and-subtracting-vectors.html#comments</comments>
		<pubDate>Tue, 08 Sep 2009 04:54:59 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Calculus]]></category>
		<category><![CDATA[Dynamics]]></category>
		<category><![CDATA[Electromagnetic Theory]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Statics]]></category>
		<category><![CDATA[adding vectors]]></category>
		<category><![CDATA[subtracting vectors]]></category>
		<category><![CDATA[vectors]]></category>

		<guid isPermaLink="false">http://engineersphere.com/?p=797</guid>
		<description><![CDATA[This is a very simple post and a very simple subject, but every once in a while even the experts need to be reminded how to do simple addition and subtraction with vectors.  Let&#8217;s go ahead and specify a couple vectors that we can work with. Vector In MATLAB: &#62;&#62;A = [1 2 4]; Vector [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very simple post and a very simple subject, but every once in a while even the experts need to be reminded how to do simple addition and subtraction with vectors.  Let&#8217;s go ahead and specify a couple vectors that we can work with.</p>
<p>Vector <img src='http://s.wordpress.com/latex.php?latex=A%20%3D%20u_%7Bx%7D%20%2B%202%20u_%7By%7D%20%2B%203%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='A = u_{x} + 2 u_{y} + 3 u_{z} ' title='A = u_{x} + 2 u_{y} + 3 u_{z} ' class='latex' /></p>
<p>In MATLAB: &gt;&gt;A = [1 2 4];</p>
<p>Vector <img src='http://s.wordpress.com/latex.php?latex=B%20%3D%202%20u_%7Bx%7D%20%2B%203%20u_%7By%7D%20%2B%204%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='B = 2 u_{x} + 3 u_{y} + 4 u_{z} ' title='B = 2 u_{x} + 3 u_{y} + 4 u_{z} ' class='latex' /></p>
<p>In MATLAB: &gt;&gt;B = [2 3 4];</p>
<p>When you add vectors together, you add each individual directional component (<img src='http://s.wordpress.com/latex.php?latex=u_%7Bx%7D%2C%20u_%7By%7D%2C%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='u_{x}, u_{y}, u_{z} ' title='u_{x}, u_{y}, u_{z} ' class='latex' />).  Subtraction works the exact same way.  Lets go ahead and do a few, C will represent the vector that results from the addition and subtraction.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=C%20%3D%20A%20%2B%20B%20%3D%20%282%20%2B%201%29%20u_%7Bx%7D%20%2B%20%282%20%2B%203%29%20u_%7By%7D%20%2B%20%283%20%2B%204%29%20u_%7Bz%7D%20%3D%203%20u_%7Bx%7D%20%2B%205%20u_%7By%7D%20%2B%207%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='C = A + B = (2 + 1) u_{x} + (2 + 3) u_{y} + (3 + 4) u_{z} = 3 u_{x} + 5 u_{y} + 7 u_{z} ' title='C = A + B = (2 + 1) u_{x} + (2 + 3) u_{y} + (3 + 4) u_{z} = 3 u_{x} + 5 u_{y} + 7 u_{z} ' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=C%20%3D%20A%20-%20B%20%3D%20%282%20-%201%29%20u_%7Bx%7D%20%2B%20%282%20-%203%29%20u_%7By%7D%20%2B%20%283%20-%204%29%20u_%7Bz%7D%20%3D%20u_%7Bx%7D%20-%20u_%7By%7D%20-%20u_%7Bz%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='C = A - B = (2 - 1) u_{x} + (2 - 3) u_{y} + (3 - 4) u_{z} = u_{x} - u_{y} - u_{z} ' title='C = A - B = (2 - 1) u_{x} + (2 - 3) u_{y} + (3 - 4) u_{z} = u_{x} - u_{y} - u_{z} ' class='latex' /></p>
<p>These vectors are all in 3-dimensional space with a X, Y and Z component.  The number in front of each <img src='http://s.wordpress.com/latex.php?latex=u_%7B..%7D%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='u_{..} ' title='u_{..} ' class='latex' /> directional component is the weight or magnitude of that particular directional component of the vector.  There it is, short and sweet <img src='http://engineersphere.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://engineersphere.com/math/calculus/vector-dot-product.html" rel="bookmark" class="crp_title">Vector Dot Product</a></li><li><a href="http://engineersphere.com/math/unit-vector-between-two-points.html" rel="bookmark" class="crp_title">Unit Vector Between Two Points</a></li><li><a href="http://engineersphere.com/circuit-theory/mesh-current.html" rel="bookmark" class="crp_title">Mesh Current</a></li><li><a href="http://engineersphere.com/linear-systems/zero-input-response/zero-input-response.html" rel="bookmark" class="crp_title">Zero Input Response</a></li><li><a href="http://engineersphere.com/basic-electrical-concepts/ohms-law.html" rel="bookmark" class="crp_title">Ohm&#8217;s Law</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://engineersphere.com/math/calculus/adding-and-subtracting-vectors.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Volume of Ellipsoid &#8211; MATLAB</title>
		<link>http://engineersphere.com/math/calculus/volume-of-ellipsoid-matlab.html</link>
		<comments>http://engineersphere.com/math/calculus/volume-of-ellipsoid-matlab.html#comments</comments>
		<pubDate>Mon, 31 Aug 2009 02:28:47 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Calculus]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[Elipsoid]]></category>
		<category><![CDATA[Ellipsoid]]></category>
		<category><![CDATA[Ellipsoid Volume]]></category>
		<category><![CDATA[Volume of Ellipsoid]]></category>

		<guid isPermaLink="false">http://engineersphere.com/?p=729</guid>
		<description><![CDATA[This is how you calculate the volume of an ellipsoid with the following equation. rmax = 1; V = 0; step = 0.02; A = 5; B = 10; C = 15; for x= -5 : step : 5 for y = -10 : step : 10 for z = -15 : step : 15 [...]]]></description>
			<content:encoded><![CDATA[<p>This is how you calculate the volume of an ellipsoid with the following equation.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%5E%7B2%7D%2B%20%5Cfrac%7B1%7D%7B4%7D%20y%5E%7B2%7D%20%2B%20%5Cfrac%7B1%7D%7B9%7D%20z%5E%7B2%7D%20%5Cle%2025%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='x^{2}+ \frac{1}{4} y^{2} + \frac{1}{9} z^{2} \le 25 ' title='x^{2}+ \frac{1}{4} y^{2} + \frac{1}{9} z^{2} \le 25 ' class='latex' /></p>
<p>rmax = 1;<br />
V = 0;<br />
step = 0.02;<br />
A = 5;</p>
<p>B = 10;<br />
C = 15;<br />
for x= -5 : step : 5<br />
for y = -10 : step : 10<br />
for z = -15 : step : 15<br />
if((x/A).^2 + (y/B).^2 + (z/C).^2) &lt; rmax<br />
V = V + step.^3;<br />
end<br />
end<br />
end<br />
end<br />
disp(V)</p>
<p>it should spit out <img src='http://s.wordpress.com/latex.php?latex=1000%20%5Cpi%20&#038;bg=efe5d9&#038;fg=000000&#038;s=0' alt='1000 \pi ' title='1000 \pi ' class='latex' />, approximately</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://engineersphere.com/math/differential-equations/solving-a-system-equation.html" rel="bookmark" class="crp_title">Solving a System Equation</a></li><li><a href="http://engineersphere.com/math/laplace-transforms.html" rel="bookmark" class="crp_title">Laplace Transforms</a></li><li><a href="http://engineersphere.com/matlab/root-locus-method-in-matlab.html" rel="bookmark" class="crp_title">Root Locus Method in MATLAB</a></li><li><a href="http://engineersphere.com/basic-electrical-concepts/transformers.html" rel="bookmark" class="crp_title">Transformers</a></li><li><a href="http://engineersphere.com/math/unit-vector-between-two-points.html" rel="bookmark" class="crp_title">Unit Vector Between Two Points</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://engineersphere.com/math/calculus/volume-of-ellipsoid-matlab.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
