<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Other_system_representations</id>
		<title>Other system representations - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Other_system_representations"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Other_system_representations&amp;action=history"/>
		<updated>2026-05-13T01:47:30Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Other_system_representations&amp;diff=1995&amp;oldid=prev</id>
		<title>Gyan: Created page with '{|border=&quot;1&quot; width=100% ! width=20% | Visual Cue ! width=60% | Narration  |- | Show first slide | As we mentioned in the first tutorial, the variable 'z' is already available to …'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Other_system_representations&amp;diff=1995&amp;oldid=prev"/>
				<updated>2012-12-24T10:35:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{|border=&amp;quot;1&amp;quot; width=100% ! width=20% | Visual Cue ! width=60% | Narration  |- | Show first slide | As we mentioned in the first tutorial, the variable &amp;#039;z&amp;#039; is already available to …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|border=&amp;quot;1&amp;quot; width=100%&lt;br /&gt;
! width=20% | Visual Cue&lt;br /&gt;
! width=60% | Narration&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show first slide&lt;br /&gt;
|&lt;br /&gt;
As we mentioned in the first tutorial, the variable 'z' is already available to us as a symbolic constant, so we needn't use the poly function to define it. It can be defined simply as: &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    z = %z&lt;br /&gt;
|&lt;br /&gt;
We now define a first order discrete time system: &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    a = 0.1&lt;br /&gt;
    DTSystem = syslin('d', a*z/(z - (1-a)))&lt;br /&gt;
|&lt;br /&gt;
We use the same 'syslin' function as before. This time, we specify the domain to be discrete time, instead of continuous time. &lt;br /&gt;
&lt;br /&gt;
Here, we have to define the input specifically, as against using the 'step' word for continuous time simulation. We define a step for 50 points. &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    u = ones(1, 50);&lt;br /&gt;
|&lt;br /&gt;
The function we have to use to simulate this system is the 'flts' function. &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    y = flts(u, DTSystem);&lt;br /&gt;
    plot(y)&lt;br /&gt;
|&lt;br /&gt;
This is the step response to the transfer function &amp;lt;math&amp;gt;\frac{0.1}{z - 0.9}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the Bode plot just as we did for the continuous time system: &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    bode(DTSystem, 0.001, 1)&lt;br /&gt;
|&lt;br /&gt;
Similarly, we can view the root locus: &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    evans(DTSystem)&lt;br /&gt;
|&lt;br /&gt;
We can also discretize a continuous time system using the dscr function. Let us discretize the system 'SimpleSys' from the first tutorial with a sampling period of 0.1. &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    dscr(SimpleSys, 0.1)&lt;br /&gt;
|&lt;br /&gt;
We see that the system is returned in its state space representation. We can convert this to a transfer function representation in discrete time using the ss2tf function: &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    SimpleSysDiscr = ss2tf(dscr(SimpleSys, 0.1)) &lt;br /&gt;
|&lt;br /&gt;
We will see in the next tutorial, how to define and use state space representations of a system. &lt;br /&gt;
&lt;br /&gt;
We can simulate this system: &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
    t = [0: 0.1: 10];&lt;br /&gt;
    u = ones(t);&lt;br /&gt;
    y = flts(u, SimpleSysDiscr);&lt;br /&gt;
    plot(t, y)&lt;br /&gt;
|&lt;br /&gt;
END&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gyan</name></author>	</entry>

	</feed>