tag:blogger.com,1999:blog-41561727619060079032024-03-21T13:11:06.516-07:00Simulink TutorialThis blog help you use Simulink Tutorial in Matlab Effectively and save timeAnonymoushttp://www.blogger.com/profile/10504862846070591916noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4156172761906007903.post-73313951629737252932012-07-10T21:43:00.000-07:002012-07-10T21:49:11.343-07:00Simulink and its Relation to MATLAB TutorialThe MATLAB® and Simulink® environments are integrated into one entity, and thus we can analyze, simulate, and revise our models in either environment at any point. We invoke Simulink from within MATLAB. We begin with a few examples and we will discuss generalities in subsequent chapters. Throughout this text, a left justified horizontal bar will denote the beginning of an example, and a right justified horizontal bar will denote the end of the example. These bars will not be shown whenever an example begins at the top of a page or at the bottom of a page. Also, when one example follows immediately after a previous example, the right justified bar will be omitted.<br />
<br />
<b style="color: red;">Example 1.1</b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDd21I-vE074kv35ODDBw8M4zicNHNoar8mXli9smETe6yBPGdSfLIkK-oEugOe1Rjx-lH9EyLpRXhzbiBMpPtcWVnf0zetytdvtA4HObl9YkFzGCWeLEvxYohX03qubcOw84vvPPxsOY/s1600/Simulink+Tutorail+1+Ex.pdf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDd21I-vE074kv35ODDBw8M4zicNHNoar8mXli9smETe6yBPGdSfLIkK-oEugOe1Rjx-lH9EyLpRXhzbiBMpPtcWVnf0zetytdvtA4HObl9YkFzGCWeLEvxYohX03qubcOw84vvPPxsOY/s320/Simulink+Tutorail+1+Ex.pdf.png" width="320" /></a></div>
<br />
<br />
Download Here <a href="https://docs.google.com/open?id=0BxTMpkAqh-e5UU11UU55OFdENlk"><b>Simulink and its Relation to MATLAB Tutorial</b></a><br />
<br />Anonymoushttp://www.blogger.com/profile/10504862846070591916noreply@blogger.com0tag:blogger.com,1999:blog-4156172761906007903.post-74794702347570280072012-07-10T21:30:00.003-07:002012-07-10T21:30:47.298-07:00Running a Demo Model In Simulink TutorialAn interesting demo program provided with Simulink models the thermodynamics of a house. To run this demo, follow these steps:<br />1 Start MATLAB. See yourMATLAB documentation if you’re not sure how to do this.<br />2 Run the demo model by typing thermo in the MATLAB command window. This command starts up Simulink and creates amodel window that contains this model.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifUNgjYodBoBTEyYVt1e43lN55tEb6gig4FhSbxPCMXPaugmFvAGi4rCbIO9pN8CxGTVK1_q5_7B4SGuqPwr6zyHNBTLbD9dcqbuK-0dTCBbyoeWY4l2FxUsbrUkXYBd8fZBOu3yAyCzQ/s1600/Simulink+Tutorail+pdf.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifUNgjYodBoBTEyYVt1e43lN55tEb6gig4FhSbxPCMXPaugmFvAGi4rCbIO9pN8CxGTVK1_q5_7B4SGuqPwr6zyHNBTLbD9dcqbuK-0dTCBbyoeWY4l2FxUsbrUkXYBd8fZBOu3yAyCzQ/s1600/Simulink+Tutorail+pdf.jpg" /></a></div>
When you open the model, Simulink opens a Scope block containing two plots labeled Indoor vs. Outdoor Temp and Heat Cost ($), respectively. 3 To start the simulation, pull down the Simulation menu and choose th Start command (or, on Microsoft Windows, press the Start button on the Simulink toolbar). As the simulation runs, the indoor and outdoor temperatures appear in the Indoor vs. Outdoor Temp plot and the cumulative heating cost appears in the Heat Cost ($) plot.<br />
<br />
4 To stop the simulation, choose the Stop command from the Simulation menu (or press the Pause button on the toolbar). If you want to explore other parts of the model, look over the suggestions in “Some Things to Try”<br />
5 When you’re finished running the simulation, close the model by choosing Close from the File menu.<br />
<br />
<b>Description of the Demo In Simulink</b><br />
<br />
The demo models the thermodynamics of a house using a simple model. The thermostat is set to 70 degrees Fahrenheit and is affected by the outsid temperature, which varies by applying a sine wave with amplitude of 15 degrees to a base temperature of 50 degrees. This simulates daily temperature fluctuations. The model uses subsystems to simplify the model diagram and create reusable systems. A subsystem is a group of blocks that is represented by a Subsystem block. Thismodel contains five subsystems: one named Thermostat, one named House, and three Temp Convert subsystems (two convert Fahrenheit to<br />Celsius, one converts Celsius to Fahrenheit). The internal and external temperatures are fed into the House subsystem, which updates the internal temperature. Double-click on the House block to see the underlying blocks in that subsystem<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNpHHKnBKW2ayZ20aKx35IkpB4byHrGKjfWp48bAfE1tU-pTMiFCJwilkR48xmYgJgDppjR3S6Hla3XA789oTTttkDZYtu4W0UI3Xn169RclBbDjFj8ie2jJkr2f4DpDg2X_fjohVGsvo/s1600/simulates.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Simulink Tutorial" border="0" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNpHHKnBKW2ayZ20aKx35IkpB4byHrGKjfWp48bAfE1tU-pTMiFCJwilkR48xmYgJgDppjR3S6Hla3XA789oTTttkDZYtu4W0UI3Xn169RclBbDjFj8ie2jJkr2f4DpDg2X_fjohVGsvo/s320/simulates.jpg" title="Simulink Tutorial" width="320" />House subsystem</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
.The Thermostat subsystem models the operation of a thermostat, determining when the heating system is turned on and off. Double-click on the block to see the underlying blocks in that subsystem.<br />Anonymoushttp://www.blogger.com/profile/10504862846070591916noreply@blogger.com1tag:blogger.com,1999:blog-4156172761906007903.post-37748002870138320052012-07-10T21:19:00.003-07:002012-07-10T21:24:19.954-07:00Analyzing Simulation Results Tutorial<b>Viewing Output Trajectories Simulation Results Tutorial</b><br />
<br />
Output trajectories from <b>Simulink </b>can be plotted using one of three methods:<br />
<br />
•Feeding a signal into either a Scope or an XY Graph block<br />
•Writing output to return variables and using MATLAB plotting commands<br />
•Writing output to the workspace using ToWorkspace blocks and plotting the results using MATLAB plotting commands<br />
<br />
Using the Scope Block <b>Simulation Results Tutorial</b><br />
<br />
You can use display output trajectories on a Scope block during a simulation. This simple model shows an example of the use of the Scope block.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGY0ygQhaun8zzDhcmamdsTGsuIDsU7QzAdMgXnRFZCvYYYI1TXrsTFaskeHrHk1WwDx8r5N8YKKvlOqZIn_cGwcfiOOhRAYfu5fs8jKUqvk10yybebtqmCn7bKnGy6hkym0ejh_t3hB4/s1600/Simulink.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Simulation Tutorial" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGY0ygQhaun8zzDhcmamdsTGsuIDsU7QzAdMgXnRFZCvYYYI1TXrsTFaskeHrHk1WwDx8r5N8YKKvlOqZIn_cGwcfiOOhRAYfu5fs8jKUqvk10yybebtqmCn7bKnGy6hkym0ejh_t3hB4/s1600/Simulink.jpg" title="Simulation Tutorial" /></a></div>
The display on the Scope shows the output trajectory. The Scope block enables you to zoomin on an area of interest or save the data to the workspace. The XY Graph block enables you to plot one signal against another.<br />
<br />
Using Return Variables <a href="http://simulinktutorial.blogspot.com/2012/07/analyzing-simulation-results-tutorial.html"><b>Simulation Results Tutorial</b></a><br />
<br />
By returning time and output histories, you can use MATLAB plotting commands to display and annotate the output trajectories. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVeNlGNavONLLTnlRaQiKWy1bgWREEasEjtYR543M08PmgZlmI-KawNRlIPY5jLTiA2f0p1NExHcSKXpHaUXfHTYqNrBYQh8wNmUIDNuNog0iDTJdp6vPKPEhohtm0pXvh1cO5vV3aDLA/s1600/Using+Return+Variables+1.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVeNlGNavONLLTnlRaQiKWy1bgWREEasEjtYR543M08PmgZlmI-KawNRlIPY5jLTiA2f0p1NExHcSKXpHaUXfHTYqNrBYQh8wNmUIDNuNog0iDTJdp6vPKPEhohtm0pXvh1cO5vV3aDLA/s1600/Using+Return+Variables+1.bmp" /></a></div>
The block labeled Out is an Outport block from the Signals & Systems library. The output trajectory, yout, is returned by the integration solver<br />
<br />
You can also run this <b>simulation </b>from the <a href="http://simulinktutorial.blogspot.com/2012/07/analyzing-simulation-results-tutorial.html">Simulation </a>menu by specifying variables for the time, output, and states on the Workspace I/O page of the Simulation Parameters dialog box. You can then plot these results using:<br />
<i><b> plot(tout,yout)</b></i><br />
<br />
<i><b>Using the To Workspace Block</b></i><br />
<br />
<i><b> Using the To Workspace BlocThe To Workspace block can be used to return output trajectories to the MATLAB workspace. The model below illustrates this use</b></i><br />
<i><b><br /></b></i><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaR9OkjXOoXveswYVcdL5i7YiZQKngOZatfDMxcOvNKfuRNxMbk8LX6TxxOBWQoG8MKFYw9slQa2tPxfwk_ohSRzzm7hpgXNgNX46VBADArPz1hI9u01VbMfJc-M_fMJBtTjzfIyus5lU/s1600/Workspace+Block.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaR9OkjXOoXveswYVcdL5i7YiZQKngOZatfDMxcOvNKfuRNxMbk8LX6TxxOBWQoG8MKFYw9slQa2tPxfwk_ohSRzzm7hpgXNgNX46VBADArPz1hI9u01VbMfJc-M_fMJBtTjzfIyus5lU/s1600/Workspace+Block.jpg" /></a></div>
The variables y and t appear in the workspace when the simulation is complete. The time vector is stored by feeding a Clock block into a To Workspace block. The time vector can also be acquired by entering a variable name for the time on the Workspace I/O page of the Simulation Parameters dialog box for menu-driven simulations, or by returning it using the sim command (see Chapter 4 for more information).<br />
The To Workspace block can accept a vector input, with each input element’s trajectory stored as a column vector in the resulting workspace variable.<i><b></b></i><br />
<i><b><br /></b></i><br />
<a href="http://simulinktutorial.blogspot.com/2012/07/analyzing-simulation-results-tutorial.html"><i><b>Analyzing Simulation Results Tutorial</b></i></a>Anonymoushttp://www.blogger.com/profile/10504862846070591916noreply@blogger.com0tag:blogger.com,1999:blog-4156172761906007903.post-30053804688552567432012-07-10T20:29:00.002-07:002012-07-10T20:49:11.045-07:00Interactive MATLAB & Simulink Based TutorialsThe following interactive tutorials are especially designed for
students. Faculty may use this material to supplement their courses. The
tutorials are narrated by engineers from MathWorks and include several
interactive exercises to reinforce learning.<br />
<h2>
<a href="http://www.mathworks.com/academia/student_center/tutorials/register.html">MATLAB Tutorial</a> (Approximately 120 minutes total; 10 minutes average for each module)</h2>
<ul>
<li>Learn to use MATLAB<sup>®</sup> at your own pace. <a href="http://www.mathworks.com/academia/student_center/tutorials/register.html">Start now!</a></li>
<ul>
<li>Get started with the fundamentals of MATLAB</li>
<li>Includes MATLAB On-Ramp, MATLAB for Problem Solving, and Programming in MATLAB</li>
<li>Learn with specific case studies, such as global warming</li>
</ul>
<li>Visit <a href="http://www.mathworks.com/help/techdoc/">MATLAB Documentation</a> </li>
<li><a href="http://www.mathworks.com/academia/student_center/tutorials/launchpad.html">Explore other MATLAB learning resources</a> </li>
</ul>
<h2>
<a href="http://www.mathworks.com/academia/student_center/tutorials/slregister.html">Simulink Tutorial</a> (Approximately 135 minutes total; 10 minutes average for each module)</h2>
<ul>
<li>Learn to use Simulink<sup>®</sup> for modeling dynamic systems. <a href="http://www.mathworks.com/academia/student_center/tutorials/slregister.html">Start now!</a> </li>
<ul>
<li>Get started with the fundamentals of Simulink </li>
<li>Includes Simulink On-Ramp, Using Simulink to Model
Continuous Dynamical Systems, Using Simulink to Model Discrete
Dynamical Systems</li>
</ul>
<li>Visit <a href="http://www.mathworks.com/help/toolbox/simulink/">Simulink Documentation</a> </li>
<li><a href="http://www.mathworks.com/academia/student_center/tutorials/simulink-launchpad.html">Explore other Simulink learning resources</a> </li>
</ul>
<h2>
<a href="http://www.mathworks.com/academia/student_center/tutorials/signal-processing-tutorial.html">Signal Processing Tutorial</a> (Approximately 150 minutes total; 12 minutes average for each module)</h2>
<ul>
<li>Learn to use MATLAB, Simulink, and Signal Processing Toolbox<span class="tm">™</span> for designing and simulating signal processing systems. <a href="http://www.mathworks.com/academia/student_center/tutorials/signal-processing-tutorial.html">Start now!</a> </li>
<ul>
<li>Some knowledge of MATLAB and Simulink is required; the MATLAB and Simulink tutorials fill this prerequisite </li>
<li>Includes Working with Signals, Analysis of Discrete-Time LTI Systems, and Designing Filters Using MATLAB and Simulink</li>
</ul>
<li><a href="http://www.mathworks.com/academia/student_center/tutorials/signal-processing-switchyard.html">Explore other Signal Processing learning resources</a> </li>
</ul>
<h2>
<a href="http://www.mathworks.com/academia/student_center/tutorials/controls-tutorial.html">Control Systems Tutorial</a> (Approximately 150 minutes total; 12 minutes average for each module )</h2>
<ul>
<li>Learn to use MATLAB, Simulink, and Control System Toolbox<span class="tm">™</span> for modeling, analyzing, and designing control systems. <a href="http://www.mathworks.com/academia/student_center/tutorials/controls-tutorial.html">Start now!</a> </li>
<ul>
<li>Some knowledge of MATLAB and Simulink is required; the MATLAB and Simulink tutorials fill this prerequisite </li>
<li>Includes Working with Signals, Analysis of Discrete-Time LTI Systems, and Designing Filters Using MATLAB and Simulink</li>
</ul>
<li><a href="http://www.mathworks.com/academia/student_center/tutorials/controls-switchyard.html">Explore other Control Systems learning resources</a> </li>
</ul>
<h2>
<a href="http://www.mathworks.com/academia/student_center/tutorials/computational-math-tutorial.html">Computational Mathematics Tutorial</a> (Approximately 160 minutes total; 20 minutes average for each module)</h2>
<ul>
<li>Learn to use MATLAB and Optimization Toolbox<span class="tm">™</span> for applying numerical methods. <a href="http://www.mathworks.com/academia/student_center/tutorials/computational-math-tutorial.html">Start now!</a></li>
<ul>
<li>Some knowledge of MATLAB and Simulink is required; the MATLAB and Simulink tutorials fill this prerequisite </li>
<li>Includes Linear Algebra, Solving Ordinary Differential Equations, Data Fitting and Working with Nonlinear Equations</li>
<li>Learn using interesting case studies, such as medical
imaging, web page ranking, commodities pricing, spacecraft landing, and
electricity consumption data</li>
</ul>
<li><a href="http://www.mathworks.com/academia/student_center/tutorials/computational-math-switchyard.html">Explore other Computational Mathematics learning resources</a></li>
</ul>Anonymoushttp://www.blogger.com/profile/10504862846070591916noreply@blogger.com0tag:blogger.com,1999:blog-4156172761906007903.post-26327264246945109072012-07-09T02:14:00.001-07:002012-07-10T20:47:58.099-07:00Starting Simulink Software TutorialOpening the <b>Simulink </b>Library Browser You need MATLAB running before you can open the Simulink Library Browser. 1 Start MATLAB, and then in the MATLAB Command Window, enter simulink The Simulink Library Browser opens.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinBrbtAflXSfA3frc2E3uVX7BT36DA16rs1cpsbqaCdTKK91HvrdXQm44vvMG_G1JTLUiRWFLwDJK8YOq3PHx71SjkTSsZId0hX3yCgolRFDMEkWi4h3UDSwoe-zEBdg1m1z-gFZuXDx8/s1600/Simulink+Software+Tutorial.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Simulink Tutorial, " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinBrbtAflXSfA3frc2E3uVX7BT36DA16rs1cpsbqaCdTKK91HvrdXQm44vvMG_G1JTLUiRWFLwDJK8YOq3PHx71SjkTSsZId0hX3yCgolRFDMEkWi4h3UDSwoe-zEBdg1m1z-gFZuXDx8/s1600/Simulink+Software+Tutorial.png" title="Simulink Tutorial" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"></div> You can also open the <b>Simulink </b>Library Browser by<br />
• Clicking the <b>Simulink </b>icon on the MATLAB toolbar<br />
• Clicking the Start button on the MATLAB task bar, pointing to Simulink, and then selecting Library Browser<br />
<br />
Creating a New <b>Simulink </b>Model<br />
<br />
Create a new <b>Simulink </b>model from the <b>Simulink </b>Library Browser.<br />
1 From the Simulink Library Browser menu, select File > New > Model. An empty model opens in the Simulink editor window. <br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaaAvHlQjkdF1JmWs5hO5RluUMtNpe-As3VfxUpL06iS7fXsEn8pS89IQCzGb1NN5GNdK0R-rc3ZN5mNIQiG9-PjdV-vH2mQL6UH5ltcxW9rIbL0Y-ZPj2Ly6kG871qHDDlaFgqnZrhVY/s1600/Simulink+tutorial.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Simulink Tutorial" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaaAvHlQjkdF1JmWs5hO5RluUMtNpe-As3VfxUpL06iS7fXsEn8pS89IQCzGb1NN5GNdK0R-rc3ZN5mNIQiG9-PjdV-vH2mQL6UH5ltcxW9rIbL0Y-ZPj2Ly6kG871qHDDlaFgqnZrhVY/s1600/Simulink+tutorial.png" title="Simulink Tutorial" /></a></div><br />
2 Select File > Save.<br />
3 In the Save As dialog box, enter a name for your model, and then click Save.<br />
Simulink saves your model with the file extension .mdl.Anonymoushttp://www.blogger.com/profile/10504862846070591916noreply@blogger.com0