Code Directory
 Visual Basic & VB.NET
New Code
dbForge Studio for PostgreSQL 2.3.212
HTMLPad 2020 16.2
WeBuilder 2020 16.2
Rapid CSS 2020 16.2
Rapid PHP 2020 16.2
C# HTML to PDF 2020.8.1
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Top Code
IcrediBB Bulletin Board System 1.0
Video Conference Website Scripts 2.86
HTMLPad 2020 16.2
Ticket Booking System 1.0
Car Rental Script by PHPJabbers 2.1
Ueber Project Management System 1.0
MLM Software ONE 1.5.46
Design and Implementation of FIR Filter 1.0
ChequePRO Cheque Printing writing System 1.0
Ad2Ex Adverser Php Script 1.06
Temperature Controller 1.0
Java-2-Pseudo 1.0
Paste phpSoftPro 1.4.1
ASP.NET Guestbook 3 1.1
Random Record From Database
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Apphitect Airbnb Clone Script 1.0
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
MCG - A Matlab Code Generation Engine 1.0
File ID: 83893

MCG - A Matlab Code Generation Engine 1.0
Download MCG - A Matlab Code Generation Engine 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 48
Submit Rating:
MCG - A Matlab Code Generation Engine 1.0 Description
Description: MCG is a tool for doing in-place code generation. MCG is intended to
provide the maximum traceability of generated code back to the Matlab
code generator.

MCG processes a source file looking for sections of specially tagged
code. The tags that denote generation sections exist in comment
sections. These sections are expected to contain Matlab code. MCG
finds the code, executes it, then places text generated back into the
original source file.

Running MCG on itself will add a line of executable Matlab code in
this documentation header. Example code:

mcg.outl('% --Example generated code!--');

To run MCG:
>> m = mcg;
>> m.codegen('mcg.m');

After running the example above, the MCG source will have an additional
line inserted between the "]]]" and "[[[/MCG]]]" lines. Note that MCG
ships with both C and LaTeX source code generation examples.

The code generation section is denoted by two tags: "[[[MCG]]]" which
begins the section, and "[[[/MCG]]]" which ends the section. Each tag is
started by "[[[" and ended by "]]]". All code generated by the section
is placed between the section start and end tags.

All tags must be on lines which are commented out. MCG only supports
single line, not block, comments. MCG automatically determines the
comment characters being used and is thus language independent.

The section opening tag contains the Matlab code to run in order to
generate code. Any amount of valid Matlab code may exist on the lines
between "[[[MCG" and "]]]", but the "[[[MCG" and "]]]" must be on their
own lines. In addition, the section close tag "[[[/MCG]]]" must be on
its own line.

Generated code is sent to the source file by calling the static method:
MCG.OUTL. This method will append a carriage return, or a carriage
return + linefeed to the end of each line it has been passed. The
correct line ending is determined automatically.

Each block of code is executed in it's own namespace. Variables are not
retained between block calls. The MCG object provides a USERDATA
property which is accessible from the executing instance within the
code being executed. This property can be used to pass data between
different code generation sections.

The currently executing instance may be retrieved by the code being
executed by calling the method: MCG.INSTANCE.

MCG tag start and end characters can be customized, as can the section
start and end characters. Care should be taken that the tag and section
characters are not common to the language of the source file to reduce

Code blocks are handled in the order in which they exist in the source
file. Files are processed in the order in which they are passed.

MCG is a Matlab knock off of Cog by Ned Batchelder. See:

License: Shareware

Related: mcgoutl, Append, method, Static, Generated, Calling, carriage, return, ending, determined

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 48

More Similar Code

XSCodegen is a codegen - code generation utility for developers and architects. This tool reads database schemas, then use xslt based templates to generate code or documents to implement rapid development.

Alchemist is a machine code generation library. It can be used to programmatically generate machine code, e.g. as part of a JIT compiler.

pmMDA - poor man MDA - is a pragmatic MDA code generation engine based on Velocity. The implementation is done in Java. The input model is defined using UML tools - e.g. ArgoUML -. Target frameworks are provided to realize complex applications.

The JET Code Generator is a DataBase code generation system based on industry standard XSLT. If you've ever felt that you're writing the same data access code over and over again, this tool is for you!!

The process represented by the...

The file includes mexfunction code calling "Kinect for Windows SDK" to receive depth data and color image from Kinect and a Matlab code to reshape the information matries. Please see the Readme.txt for usage.

The goal is to write a MATLAB code which runs a script in order to manipulate a stream composittion in HYSYS. This can be done by doing the following procedure:

First a script should be made in HYSYS (Tools -> Script Manager ->...

RestfulX Framework Code Generation Engine / Rails 2.1+ Integration Support

Ruboss Framework Code Generation Engine / Rails 2.1+ Integration Support

This is a Matlab code for optimizing a plane truss by two methods : Fully Stress Design and Sequential Linear Programming. In SLD, we deal with the Euler buckling condition and some other constraints.

This demo shows how you can create a COM component from a MATLAB code using MATLAB COM Builder. This demo compiles a function that uses the basic curve fitting capability of MATLAB into a COM component and uses it in an external Visual Basic...

User Review for MCG - A Matlab Code Generation Engine
- required fields

Please enter text on the image