tag:www.mathworks.com,2005:/matlabcentral/fileexchange/feedMATLAB Central File Exchangeicon.pnglogo.pngMATLAB Central - File Exchange - type:model category:"Programming and Data Types"User-contributed code library2015-03-03T00:45:36-05:00221100tag:www.mathworks.com,2005:FileInfo/278432010-06-06T19:46:15Z2014-04-09T13:58:02ZArduino IO package: Slides and ExamplesSlides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB".<p>This zip file contains the slides (and some MATLAB examples) used for this webinar: </p>
<p><a href="http://www.mathworks.com/videos/learning-basic-mechatronics-concepts-using-the-arduino-board-and-matlab-81717.html">http://www.mathworks.com/videos/learning-basic-mechatronics-concepts-using-the-arduino-board-and-matlab-81717.html</a></p>
<p>The webinar introduces the ArduinoIO package, which allows the user to perform Analog and Digital Input and Output, as well as to control DC, Servo and Stepper Motors interactively from the MATLAB command window, without having to write, debug, compile, upload and run C programs.</p>
<p>The examples included is this file are taken from the "example" folder of the Arduino IO package.</p>
<p>NOTE: You can download the Arduino IO package from here: <a href="http://www.mathworks.com/matlabcentral/fileexchange/32374">http://www.mathworks.com/matlabcentral/fileexchange/32374</a>
</p>Giampiero Campahttp://www.mathworks.com/matlabcentral/profile/authors/1692307-giampiero-campaMATLAB 7.10 (R2010a)falsetag:www.mathworks.com,2005:FileInfo/411612013-04-08T14:21:23Z2013-04-08T14:21:23ZPV array three level inverter (how connect ?) - help How do I connect a PV array to the converter? does not work... Please help me... <p>Pv array -72 solar cells(simscape) </p>Viliamhttp://www.mathworks.com/matlabcentral/profile/authors/4210455-viliamMATLAB 7.13 (R2011b)Simulinkfalsetag:www.mathworks.com,2005:FileInfo/342702011-12-20T04:47:19Z2011-12-20T04:47:19Zapf,stattcom,inverterpower electronic simulation<p>active filter simulation, stattcom and </p>studenthttp://www.mathworks.com/matlabcentral/profile/authors/2995799-studentMATLAB 7.10 (R2010a)SimPowerSystemsfalsetag:www.mathworks.com,2005:FileInfo/342452011-12-17T12:32:31Z2011-12-17T12:32:31ZHamming Code ModelError in signal with & without Hamming Code<p>The program shows the error in the signal normally and after error correction through hamming code model.</p>Nishant Guptahttp://www.mathworks.com/matlabcentral/profile/authors/1747872-nishant-guptaMATLAB 7.12 (R2011a)Communications System ToolboxSimulinkfalsetag:www.mathworks.com,2005:FileInfo/341282011-12-08T13:43:31Z2011-12-08T13:43:31ZBuffer and UnBuffer using Simulink BlocksA simple way to model Buffer and UnBuffer blocks, using just Simulink Blocks. Contains also a test.<p>This model shows how you can model simple Buffer and UnBuffer
<br />using just Simulink blocks.
<br />A simple utility I''ve created to aid in building Simulink models.
<br />You can test the correctness of the models in comparison to an ideal
<br />Implementation. The scope shows the input and output signals, and
<br />the difference between them.
<br />After "N" samples, the signals should look the same, and the error should
<br />be zero.
<br />You can control the Buffer size and sample time, by double clicking it.</p>Roni Peerhttp://www.mathworks.com/matlabcentral/profile/authors/1356034-roni-peerMATLAB 7.13 (R2011b)Simulinkfalsetag:www.mathworks.com,2005:FileInfo/310202011-04-12T04:45:13Z2011-05-05T06:13:34ZBus X StructThis example shows how to import Matlab Structs into Simulink by using BusObjects.
<p>By configuring BusObjects in the signal type of a constant (might also work for input ports!), Simulink can import structure data from structure variables in workspace.</p>
<p>Only for 2010b and later!!</p>Gustavo Baldo Carvalhohttp://www.mathworks.com/matlabcentral/profile/authors/1041864-gustavo-baldo-carvalhoMATLAB 7.11 (R2010b)Simulinkfalsetag:www.mathworks.com,2005:FileInfo/289522010-10-06T04:41:21Z2010-10-06T04:41:21ZA Benchmark Problem for Model Based Control System Tests - 001A benchmark problem for model based control system testing<p>Today safety critical flight control systems are tested using model based approach. The model blocks are proprietary and seldom shared in the open. A benchmark problem was designed as part of a research activity to test out certain test case generation techniques. This model was also used as a problem for the test case generation methodology training classes. Trainees, normally fresh graduates from colleges, were asked to design manual test cases to find out the errors embedded in the model. The control system blocks are typical of the ones used in a flight control system or an automobile control system. It is a combination of linear filters, integrators, non-linear blocks like rate limiters and lookup table. There is a combination of logic and time dependency in terms of persistence blocks. These are however more complex for generating test cases as explained below. The blocks have been selected and placed to ensure that the students exercise some thought process and understand the underlying functionality of the control system blocks.</p>
<p>This problem is being provided as open source to the Control System test community. This we believe is a first of its kind and we hope to provide more benchmark problems as we go along comparing Taguchi method of testing. Users are free to try out the Matlab or other commercial test tools against this model. We would like to hear about your experience in using this benchmark problem.</p>
<p>Benchmark Problem</p>
<p>The benchmark model is called compete_2010.mdl. This is a Simulink model with a test harness, which takes in 10 inputs from the workspace named Inp1 to Inp10. It has 7 outputs, which come out as a vector in a variable simout (refer Figure 1). There is a Matlab code, which is an exact replica of the model in code form (file model00001.m). This has undergone more than 20,000 test runs and both model and code match very well. There is a variation of this with instrumentation for coverage called model00001_c.m. This file has a variable COVERAGE, which collects the line, condition and logic coverage. There is a Simulink model with 17 mutants injected into the model subsystems called compete.mdl. This has the model and the mutants in the same file. Each mutant block has a single mutant embedded into it. The output of the mutant block and the original model is compared and is available as error in the scope. The model output is Output in workspace and the mutant outputs are available as Output1 to Output17 in the workspace. </p>
<p>Automated mutant generation</p>
<p>The model was used as a benchmark problem to verify random test case generation techniques. A novel method of test case generation using Taguchi was also used to generate test cases. An automated mutant generator was developed for the Simulink and Matlab code. These Matlab scripts generate all combinations of mutants for the Simulink and Matlab code. An OR gate, as an example, would be replaced by an AND gate, XOR gate etc in each mutant file. Each mutant file will have only one mutant. The mutant description is provided as a text file for the Simulink mutant models. The mutant Matlab code has the change description as the first line in the mutant. The script could generate 414 Simulink mutant and 7592 mutants for the Matlab code.
</p>Yogananda Jeppuhttp://www.mathworks.com/matlabcentral/profile/authors/2222682-yogananda-jeppuMATLAB 7.7 (R2008b)Simulinkfalsetag:www.mathworks.com,2005:FileInfo/284872010-08-16T09:36:14Z2010-08-16T09:36:14ZSpeeding Up Optimization Problems with Parallel ComputingFiles from the webinar: Speeding up optimization problems with parallel computing<p>Fiels from the webinar: Speeding up optimization problems with parallel computing </p>
<p>Description: This download contains the MATLAB functions/scripts used in the August 10th webinar <a href="http://www.mathworks.com/wbnr50746">http://www.mathworks.com/wbnr50746</a> . </p>
<p>There are five examples that show how to use parallel computing to speed up optimization problems.</p>Stuart Kozolahttp://www.mathworks.com/matlabcentral/profile/authors/726228-stuart-kozolaMATLAB 7.10 (R2010a)Control System ToolboxGlobal Optimization ToolboxOptimization ToolboxParallel Computing ToolboxSimulinkMATLAB Distributing Computing Server is required to run these demos on more than one machine.falsetag:www.mathworks.com,2005:FileInfo/44282004-02-02T11:45:29Z2010-06-23T13:54:03ZUsing the Simulink Debugger (Example 2)Explores using the Simulink Debugger to extract information.<p>The MathWorks receives many questions relating to Simulink state ordering, state initialization, and Simulink solver performance. Many times customers are not aware of existing capabilities that are available and will solve their current issues.</p>
<p>There are 3 MATLAB central submissions (all separate downloads!) that have been used with multiple customers to show current capabilities. </p>
<p>Example 1 : Explores how Simulink defines its states and what you can do once you know that definition.</p>
<p>Example 2 : Explores using the Simulink Debugger to extract information
<br />from a simulink diagram or simulation run.</p>
<p>Example 3 : Explores how to leverage the 'Structure with Time' Simulink data format to alleviate ordering and index issues on inputs/outputs/states.</p>
<p>This script file will show the following:
<br />1) Leverage the Simulink Debugger to interrogate information on simulation execution in a batched manner (usually done interactively).
<br />2) Use Simulink Debugger to specifically access failed step information when using variable step solvers, specifically identifying the limiting state causing the failure.
<br />3) Parse Debugger information to replace with Simulink's state definition or user defined state definition.</p>Dan Lluchhttp://www.mathworks.com/matlabcentral/profile/authors/751974-dan-lluchMATLAB 7.10 (R2010a)Simulinkfalsetag:www.mathworks.com,2005:FileInfo/133052006-12-07T17:39:05Z2009-12-17T11:35:38ZAn Embedded MATLAB Approach for String Support in StateflowThis example demonstrates one approach using Embedded MATLAB to output strings from a Stateflow char<p>Strings are commonly allocated in Stateflow through the use of an array that is a container of ASCII values. When reviewing the model, it is not immediately apparent what the ASCII values represent so it is ideal to be able to use actual character strings. This example demonstrates how an Embedded MATLAB function can be used to allocate character strings and assign a variable in Stateflow equal to the string.</p>Chris Fillyawhttp://www.mathworks.com/matlabcentral/profile/authors/558215-chris-fillyawMATLAB 7.3 (R2006b)Stateflowfalse