<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-20081909</id><updated>2011-12-14T18:40:01.947-08:00</updated><title type='text'>what I know about CONTROL system</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-20081909.post-113819147638392441</id><published>2006-01-25T22:36:00.000-08:00</published><updated>2006-01-25T04:17:56.606-08:00</updated><title type='text'>Basic Tutorial for Control System (III)</title><content type='html'>Using the transfer function from the previous section:&lt;br /&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger/82/1614/320/fig1.8.png" border="0" /&gt;&lt;br /&gt;The graphic user interface (GUI) come with the control system toolbox makes the learning process faster and easier.&lt;br /&gt;&lt;br /&gt;&gt;&gt; sisotool(G);&lt;br /&gt;&lt;br /&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger/82/1614/320/basic3fig1.jpg" border="0" /&gt;&lt;br /&gt;If you don’t have the transfer function object “G” yet, please refer to &lt;a href="http://basic-control.blogspot.com/2006/01/basic-tutorial-for-control-system-i.html"&gt;Basic Tutorial for Control System (I)&lt;/a&gt; on how to do so.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The “pink color” dot is the closed-loop poles location. Dragging the dots yield the changes of gain for the system. The good thing of this GUI is that we could view the step response updated “live” when we drag the closed-loop poles. It gives us a good view on how the changes of gain affect the system step response.&lt;br /&gt;&lt;br /&gt;There are more things that we could do with this GUI, just explore and see it yourself!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20081909-113819147638392441?l=basic-control.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/113819147638392441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20081909&amp;postID=113819147638392441' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113819147638392441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113819147638392441'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/2006/01/basic-tutorial-for-control-system-iii.html' title='Basic Tutorial for Control System (III)'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20081909.post-113811336963181224</id><published>2006-01-24T06:34:00.000-08:00</published><updated>2006-01-24T06:36:09.893-08:00</updated><title type='text'>Basic Tutorial for Control System (II)</title><content type='html'>Using the transfer function from the previous section:&lt;br /&gt;&lt;a href="http://photos1.blogger.com/blogger/82/1614/1600/fig1.16.png"&gt;&lt;img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/82/1614/320/fig1.7.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let’s look into how to view the response of the system.&lt;br /&gt;&lt;br /&gt;Assuming you have created a transfer function object name 'G', if you haven't, please goto &lt;a href="http://basic-control.blogspot.com/2006/01/basic-tutorial-for-control-system-i.html"&gt;Basic Tutorial for Control System (I)&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;&gt;&gt; step(G);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger/82/1614/320/basic2fig2.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Try to right click on the graph and see what information you will get from the context menu! &lt;/p&gt;&lt;p&gt;For arbitrary input, you could generate the input signal (time and the input) and use the "lsim" function to see the response to the input. &lt;/p&gt;&lt;p&gt;One thing you need to take notes is that the "time space" for the step function is not at fixed step by default. &lt;/p&gt;&lt;p&gt;&gt;&gt; [y,t,x]=step(G);&lt;/p&gt;&lt;p&gt;Examine the t, you would find the t is not spaced evenly.&lt;/p&gt;&lt;p&gt;If you would like to have the evenly spaced time samples, you need to supply the time vection in the step function. This is useful when you want to plot the &lt;a href="http://basic-control.blogspot.com/2005/12/3-d-view-of-step-response-with.html"&gt;3-D View of Step Response with Different Gains&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;&gt;&gt; [y,t,x]=step(G,0:0.25:35);&lt;/p&gt;&lt;p&gt;For the older version of MATLAB, you might need to use the "lsim" instead of "step" to give the evenly spaced time vector.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20081909-113811336963181224?l=basic-control.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/113811336963181224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20081909&amp;postID=113811336963181224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113811336963181224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113811336963181224'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/2006/01/basic-tutorial-for-control-system-ii.html' title='Basic Tutorial for Control System (II)'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20081909.post-113803383150835622</id><published>2006-01-23T08:19:00.000-08:00</published><updated>2006-01-25T04:19:45.866-08:00</updated><title type='text'>Basic Tutorial for Control System (I)</title><content type='html'>&lt;div align="justify"&gt;Let’s start with a very simple tutorial on how to create a transfer function using MATLAB and Control System Toolbox. We have a transfer function:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://photos1.blogger.com/blogger/82/1614/1600/fig1.15.png"&gt;&lt;img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/82/1614/320/fig1.6.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://photos1.blogger.com/blogger/82/1614/1600/fig1.15.png"&gt;&lt;/a&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;To create this transfer function in MATLAB, we need to understand how MATLAB create polynomial.&lt;br /&gt;&lt;br /&gt;First, we define a variable for the numerator:&lt;br /&gt;&gt;&gt; num = 1;&lt;br /&gt;&lt;br /&gt;Second, we define the polynomial for the denominator:&lt;br /&gt;&gt;&gt; den = [3 1 2];&lt;br /&gt;&lt;br /&gt;Next, create the transfer function using the “tf” function:&lt;br /&gt;&lt;br /&gt;&gt;&gt; G = tf(num, den);&lt;br /&gt;&lt;br /&gt;How about this?&lt;br /&gt;&lt;a href="http://photos1.blogger.com/blogger/82/1614/1600/fig2.17.png"&gt;&lt;img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/82/1614/320/fig2.10.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&gt;&gt; num = 1;&lt;br /&gt;&gt;&gt; den = [3 0 2];&lt;br /&gt;&lt;br /&gt;Do take note on the 0 in the middle, it must be there to represent the “missing” term for “s”.&lt;br /&gt;&lt;br /&gt;Well, if you get error when you use “tf” command, make sure you have the control system toolbox as well. The location of a function can be location using “which” command:&lt;br /&gt;&lt;br /&gt;&gt;&gt; which tf&lt;br /&gt;&lt;br /&gt;More tutorial coming soon... :) &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20081909-113803383150835622?l=basic-control.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/113803383150835622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20081909&amp;postID=113803383150835622' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113803383150835622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113803383150835622'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/2006/01/basic-tutorial-for-control-system-i.html' title='Basic Tutorial for Control System (I)'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20081909.post-113765963092398627</id><published>2006-01-18T00:25:00.000-08:00</published><updated>2006-01-19T00:33:50.923-08:00</updated><title type='text'>Useful Site for Learning Control System</title><content type='html'>A few good websites for learning control design using MATLAB:&lt;br /&gt;&lt;br /&gt;This is the first place which I start to learn MATLAB for control design&lt;br /&gt;1. &lt;a href="http://www.engin.umich.edu/group/ctm/index.html"&gt;Control Tutorial with MATLAB&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For more details on the functions in MATLAB Control System Toolbox, the docementation is always the best place&lt;br /&gt;2. &lt;a href="http://www.mathworks.com/access/helpdesk/help/toolbox/control/"&gt;Control System Toolbox Online Documentation&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20081909-113765963092398627?l=basic-control.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/113765963092398627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20081909&amp;postID=113765963092398627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113765963092398627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113765963092398627'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/2006/01/useful-site-for-learning-control.html' title='Useful Site for Learning Control System'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20081909.post-113521778882755044</id><published>2005-12-21T17:46:00.000-08:00</published><updated>2005-12-21T18:28:18.826-08:00</updated><title type='text'>3-D View of Step Response with Different Gains</title><content type='html'>The step function only shows the step response of a system at given gain value (or controller value). For a better visualization and better view on how a controller parameters affect the step response, we could add another axis as the parameters range and see how the response of a system affected by the parameters.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1. Creating a transfer function&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;G = tf(1,[3 1 0]);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Using "step" will only show the response in 2-D&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;G1 = feedback(3*G,1);&lt;br /&gt;step(G1);&lt;br /&gt;&lt;a href="http://photos1.blogger.com/blogger/82/1614/1600/fig1.6.png"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger/82/1614/400/fig1.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3. In order to have 3-D plot, we need to construct the fix step for the t vector, this is due to the "Step" function will use the variable step for vector t.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;t = 0:0.1:20;&lt;br /&gt;u = ones(1,length(t));&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. Evaluate the gain values from 1 to 10 and plot the response in 3-D, so we can see how Kp affects the system behavior&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;for Kp = 1:10;&lt;br /&gt;G1 = feedback(Kp*G,1);&lt;br /&gt;Y(:,Kp) = lsim(G1,u,t);&lt;br /&gt;end&lt;br /&gt;Kp = 1:10;&lt;br /&gt;surf(Kp,t,Y);&lt;br /&gt;xlabel('Gain (Kp)');&lt;br /&gt;ylabel('Time (sec)');&lt;br /&gt;zlabel('Amplitude');&lt;br /&gt;title('3-D View of Step Response with different Gain');&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger/82/1614/400/fig2.jpg" border="0" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20081909-113521778882755044?l=basic-control.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/113521778882755044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20081909&amp;postID=113521778882755044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113521778882755044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113521778882755044'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/2005/12/3-d-view-of-step-response-with.html' title='3-D View of Step Response with Different Gains'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20081909.post-113521577058863464</id><published>2005-12-21T17:41:00.000-08:00</published><updated>2005-12-21T17:42:50.593-08:00</updated><title type='text'>Contents by Date</title><content type='html'>Under Construction&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20081909-113521577058863464?l=basic-control.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic-control.blogspot.com/feeds/113521577058863464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20081909&amp;postID=113521577058863464' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113521577058863464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20081909/posts/default/113521577058863464'/><link rel='alternate' type='text/html' href='http://basic-control.blogspot.com/2005/12/contents-by-date.html' title='Contents by Date'/><author><name>tcl</name><uri>http://www.blogger.com/profile/00129522875781410013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
