Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.058.200 Times

MCG - A Matlab Code Generation Engine 1.0

  Date Added: June 27, 2013  |  Visits: 215

MCG - A Matlab Code Generation Engine

Report Broken Link
Printer Friendly Version

Product Homepage
Download (18 downloads)

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. Example: Running MCG on itself will add a line of executable Matlab code in this documentation header. Example code: [[[MCG mcg.outl('% --Example generated code!--'); ]]] [[[/MCG]]] 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 confusion. 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:

Requirements: No special requirements
Platforms: Matlab
Keyword: Append Calling Carriage Determined Ending Generated Mcgoutl Method Return Static
Users rating: 0/10

License: Shareware Size: 10 KB
Libraries  -  Class::Classgen::New 3.03
Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen. SYNOPSIS Used within classgen. The main purpose of is to write the new() method for a class generated by classgen. It provides code...
24.58 KB  
Libraries  -  Class::ParmList 1.05
Class::ParmList is a Perl module with methods for processing named parameter lists. SYNOPSIS use Class::ParmList qw(simple_parms parse_parms); $thingy->some_method({ -bgcolor => #ff0000, -textcolor => #000000 }); sub some_method { my...
16.38 KB  
Libraries  -  Object::LocalVars 0.16
Object::LocalVars is a Perl module with outside-in objects with local aliasing of $self and object variables. SYNOPSIS package My::Object; use strict; use Object::LocalVars; give_methods our $self; # this exact line is required our...
40.96 KB  
Libraries  -  Net::DBus 0.33.2
Net::DBus provides a Perl binding for the DBus messaging system. Net::DBus enables services to be exported to the bus, as well as full use of services present on the bus. Modules: Net::DBus Perl extension for the DBus message system0.33.2...
82.94 KB  
Libraries  -  Math::Group::Thompson 0.96
Math::Group::Thompson Perl module contains OO methods that calculates the cardinality of the ball of radius n of Thompson group F. SYNOPSIS use Math::Group::Thompson; my $F = Math::Group::Thompson->new( VERBOSE => 0 ); my $card =...
6.14 KB  
Code Management Tools  -  Java for C++ 0.4
Java for C++ is a tool to generate C++-wrapper-classes for existing Java-classes. This tool reads a list of Java class names and creates source code for C++-classes to wrap them. The implementation of the wrapper classes uses JNI (Java Native...
44.03 KB  
Multimedia  -  zinput 1.0
ZINPUT - Graphical input from mouse with zoom [OUT_REGS] = ZINPUT(N) gets N points or regions from the current axes and returns the X- and Y-ranges in a length Nx4 matrix OUT_REGS.The cursor can be positioned using the mouse. Data points are...
10 KB  
Programming  -  Schedaddle 0.1.0
Schedaddle is a Python module for getting dates and times on scheduled intervals. For more information, see Typical Usage is as follows: #!/usr/bin/env python
20.48 KB  
Libraries  -  SNMP::BridgeQuery 0.61
BridgeQuery is a Perl extension for retrieving bridge tables. SYNOPSIS use SNMP::BridgeQuery; use SNMP::BridgeQuery qw(querymacs queryports queryat); $fdb = queryfdb(host => $address, comm => $community); unless (exists $fdb->{error}) {...
11.26 KB  
Libraries  -  Algorithm::SocialNetwork 0.07
Algorithm::SocialNetwork is a social network analysis. SYNOPSIS use Graph::Undirected; use Algorithm::SocialNetwork; my $G = Graph::Undirected->new(); $G->add_edges([qw(a b)], [qw(b c)]); my $algo = Algorithm::SocialNetwork->new(graph =>...
9.22 KB  
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data cross-classified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a non-parametric...
10 KB