29.07.2014 Views

Chemical Process Control a First Course with Matlab

Chemical Process Control a First Course with Matlab

Chemical Process Control a First Course with Matlab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

M2 - 5<br />

This example is simple enough to see that the answers returned by MATLAB are correct.<br />

❏<br />

With object-oriented programming, an object can hold many properties. We find the<br />

associated properties <strong>with</strong><br />

get(G1)<br />

Among the MATLAB result entries, we may find the properties InputName, OutputName,<br />

and Notes. We can set them <strong>with</strong> 3<br />

G1.InputName = 'Flow Rate';<br />

G1.OutputName = 'Level';<br />

G1.Notes = 'My first MATLAB function';<br />

You'll see the difference if you enter from now on:<br />

G1<br />

get(G1)<br />

MATLAB can use symbolic algebra to do Laplace transform. Since this skill is not crucial to<br />

solve control problems, we skip it here. You can find a brief tutorial on our Web Support,<br />

and you are encouraged to work through it if you want to know what symbolic algebra<br />

means.<br />

3 We are using the typical structure syntax, but MATLAB also supports the set() function<br />

to perform the same task.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!