Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102847621
simple_step.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 19:38
Size
937 B
Mime Type
text/html
Expires
Wed, Feb 26, 19:38 (2 d)
Engine
blob
Format
Raw Data
Handle
24440154
Attached To
R1252 EMPoWER
simple_step.html
View Options
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Computes the step response of a linear system</title>
<link rel="canonical" href="http://cvxr.com/cvx/examples/circuit_design/html/simple_step.html">
<link rel="stylesheet" href="../../examples.css" type="text/css">
</head>
<body>
<div id="header">
<h1>Computes the step response of a linear system</h1>
Jump to:
<a href="#source">Source code</a>
Text output
Plots
<a href="../../index.html">Library index</a>
</div>
<div id="content">
<a id="source"></a>
<pre class="codeinput">
<span class="keyword">function</span> X = simple_step(A,B,DT,N)
n = size(A,1);
Ad = expm( full( A * DT ) );
Bd = ( Ad - eye(n) ) * B;
Bd = A \ Bd;
X = zeros(n,N);
<span class="keyword">for</span> k = 2 : N,
X(:,k) = Ad*X(:,k-1)+Bd;
<span class="keyword">end</span>
</pre>
</div>
</body>
</html>
Event Timeline
Log In to Comment