Doraemon is a helper block that allow you to add blocks to Simulink diagram at ease. This tool is particularly useful in older version of MATLAB in which the recently used block feature in Simulink right click menu is not introduced. Instead of opening up the Simulink library, a new block can be added by typing its short name, e.g. "i" for integrator, "d" for derivative, "c" for constant and more defined by users.
Unzip the folder into your favorite place for MATLAB libraries and toolboxes, add the unzipped folder into path of MATLAB.
First, add Doraemon into your simulink model.
enabledora Add Doraemon block into current block.
enabledora block Open/Create a simulink model and add Doraemon block.
Then, just double click the Doraemon block or right click it and select "Open Block", a dialog will popup asking for the shortname of the block you want to add. Hit 'OK' after putting in your desired name and the block will show up.
Here is a list of predefined short name:
g Gain
d Derivative
i Integrator
s Sum
c Constant
mx Mux
dmx Demux
pid PID Controller
sine Sine Wave Source
step Step Source
ramp Ramp Source
pulse Pulse Source
xusend xPC UDP Send
xurecv xPC UDP Receive
xupack xPC UDP Pack
xuunpk xPC UDP Unpack
Beyond the predefined frequently used blocks, you can also add blocks you prefer in by editing the doralist.mat file. The format is mostly self-explanatory, while the last column, "AdditionalCode", could be used for any post processing for the block after being added in. The variable "b" will hold the handle of the newly added block. Try type "ssysx" for the short name and see how the additional code in doralist.mat changes the position of the Subsystem block being added. For more details about how it works, please refer to the addblock2model2.m and doralist.mat.
See page in File Exchange for details.