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

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

Serving Software Downloads in 956 Categories, Downloaded 50.055.459 Times

EMat: Embedded Matlab Templating 1.0

  Date Added: April 04, 2013  |  Visits: 322

EMat: Embedded Matlab Templating

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



EMAT Embedded Matlab templating EMat class provides a templating system in Matlab like Ruby's ERB system. Matlab code can be embedded inside any text document to easily control the document generation flow. A simple example is illustrated here: >> x = 42; >> tmpl = ' The value of x is '; >> obj = EMat(tmpl); >> disp(obj.render); The value of x is 42 Synopsis: obj = EMat obj = EMat( S ) obj = EMat( file_path ) obj.set( S ) obj.set( file_path ) S = obj.render() obj.render( file_path ) obj = EMat creates an empty EMat object. EMat object accepts template string either by string variable S or by specifying a path to the template text file_path. To set a template to the object, use obj.set(S) or obj.set(file_path). EMat(S) and EMat(file_path) are the shorthand for obj=EMat; obj.set(...); S = obj.render() returns a string of the rendered document. obj.render(file_path) instead renders output to a file specified by the file_path. Properties: tmpl_path: template file path. Use set() method to change tmpl: template string. Use set() method to change errchk: logical flag to enable/disable syntax check (default: true) trim: logical flag to enable/disable whitespace trim when suppresseing newline at the end (default: true) Template format: Any text document can embed matlab code with the following syntax. matlab statement matlab statement with newline suppression at the end matlab expression with rendering comment line comment line with newline suppression at the end escape to render '', respectively renders output of the matlab expression to the output. Note that numeric variables will be converted to string by NUM2STR(). When -%> is specified at the end of the line in statement or comment, a following newline will be omitted from the rendering. Any other texts appearing outside of these special brackets are rendered as is. When trim property is set true, leading whitespace in the template is also removed from the output with newline suppression syntax. Example: % In your matlab code % Prepare variables used in the template t = 'My template document'; a = 10; % Create an EMat object obj = EMat('/path/to/template.html.emat'); % Render to a file obj.render('/path/to/rendered.html');

Requirements: No special requirements
Platforms: Matlab
Keyword: 039gt039 039lt039 Comment Converted Escape Num Str Omitted Render Rendering
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


EMAT: EMBEDDED MATLAB TEMPLATING RELATED
Libraries  -  Unicode::Escape 0.0.2
Unicode::Escape is a Perl module with escape and unescape Unicode characters other than ASCII. SYNOPSIS # Escape Unicode charactors like u3042u3043u3044. # JSON thinks No more Garble!! # case 1 use Unicode::Escape; my $escaped1 =...
5.12 KB  
Libraries  -  Inline::C 0.44
Inline::C is a Perl module that can Write Perl Subroutines in C. Inline::C is a module that allows you to write Perl subroutines in C. Since version 0.30 the Inline module supports multiple programming languages and each language has its own...
92.16 KB  
Programming  -  Expect-lite 4.2.1
expect-lite is an quick and easy command line automation tool. Written in expect, it is designed to directly map an interactive terminal session into an automation script. expect-lite scripts use special character(s) at the beginning of...
102.4 KB  
Modules  -  Rules and Views Integration 6.x-1.x-de
This module integrates two of the most powerful Drupal modules: Views and Rules.It allows your rules to execute a view, and your views to execute rules.Two sides of the coinThis module provides two major pieces of functionality: 1. Execution of...
10 KB  
Libraries  -  URI::Escape 1.35
URI::Escape is a Perl module to escape and unescape unsafe characters. SYNOPSIS use URI::Escape; $safe = uri_escape("10% is enoughn"); $verysafe = uri_escape("foo", " -377"); $str = uri_unescape($safe); This module provides functions to...
96.26 KB  
Modules  -  wp-num-captcha 1.1
Adds Numerical addition CAPTCHA anti-spam methods to WordPress on the comment form. In order to post comments, users will have to type in the phrase shown on the addition. This can help prevent spam from automated bots.installation : 1. Upload...
20.48 KB  
DNS Tools  -  Comment Client for WordPress 3.47.81.284
Manage WordPress blogs easier with free Comment Client for WordPress. View, edit, delete, and moderate comments without opening a Web browser. No more lengthy delays and no need to open WordPress every time you need to approve or flag a comment as...
1.61 MB  
E-Commerce  -  Blog Comment Poster 10
Automatic blog comments posting software Blog Comment Poster submits comments to blogs automatically. Blog Comment Poster is made for you. Customized to meet your personal needs, automatic blog commenter is as individual as you are. Make...
4.1 MB  
Libraries  -  Regexp::Common::comment 2.120
Regexp::Common::comment is a Perl module that provide regexes for comments. SYNOPSIS use Regexp::Common qw /comment/; while ( ) { /$RE{comment}{C}/ and print "Contains a C commentn"; /$RE{comment}{C++}/ and print "Contains a C++...
112.64 KB  
Libraries  -  Acme::Comment 1.02
Acme::Comment is a Perl module that allows multi-line comments which are filtered out. SYNOPSIS use Acme::Comment type=>C++, own_line=>1; /* if (ref $mod) { $bar->{do}->blat(msg => blarg); eval { im sooo sick of this time for some...
7.17 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
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  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
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