isValidSymbol
- Downloads:
- Views:
- Rating:

ISVALIDSYMBOL - Check string to be a valid Matlab symbol
This function is equivalent to Matlab's ISVARNAME, but accepts cell strings as input also. While the speed is comparable for strings, it is *much* faster for cell strings (see screenshot).
L = isValidSymbol(S)
INPUT:
S: String or cell string.
OUTPUT:
L: LOGICAL scalar, if S is a string. LOGICAL array of the same size
as S for a cell string.
L is TRUE for valid symbols:
The 1st character must be a letter, the following must be a letter,
number or the underscore. The length must not exceed 63 characters.
EXAMPLES:
isValidSymbol('a') % >> true
isValidSymbol('a1') % >> true
isValidSymbol('a_') % >> true
isValidSymbol({'_a', 'b'}) % >> [false, true]
isValidSymbol('1a') % >> false
s = repmat('a', 1, 63);
isValidSymbol(s) % >> true
isValidSymbol([s, 'a']) % >> false
AIM OF THIS SUBMISSION:
Actually the C subfunction "CheckCString" was developed to support the safe creation of structs and MAT files in C-Mex functions. You can easily include the test to your Mex-projects - just remove the main function "mexFunction".
For checking Matlab strings the conversion to a C-string wastes time. Therefore the subfunction "CheckMatlabString" operates on the mxChar-vector directly.
You can accelerate Matlab's slow GENVARNAME remarkably by calling this function instead of a loop over ISVARNAME calls.
Free download from Shareware Connection - ISVALIDSYMBOL - Check string to be a valid Matlab symbol
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 25-05-2013 | Rating: 0 | Title: isValidSymbol
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/28936/1/isValidSymbol_04Oct2010.zip
ScaleTime - ScaleTime - fast linear matrix interpolation
DNorm2 - Fast euclidian norm over N.th dimension of a DOUBLE array
DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM
FilterM - FilterM, FiltFiltM: Fast digital filter
strncmpr - Compare last N chars of strings or cell strings
MATLAB Support Package for Arduino (aka ArduinoIO Package)
SimpleTest
WordPress Auto Poster Plugin
Professional Simulink Audio Equalizer
PHP Print / Echo
Ends Smart Form
Output buffering, and how it can change your life
ScriptCase - PHP Code Generator
Advanced Istaller for Java
Wind Turbine Model
C to C++ Converter
C++ Compiler
Cumulative Mann-Kendall trend test
FORMfields - The PHP Framework
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Matlab Connection String
Matlab Sql Server Connection String
Convert Hex String Binary String C
Find String String Batch
Delphi String Mask String
JS3Upload Script - This is a JFileUpload add-on that allows to upload files to Amazon Simple Storage Service (S3)
JS3Upload for FTP - This is a JFileUpload add-on that allows to upload files to Amazon Simple Storage Service (S3)
Matlab files of the book: Mathematical Modelling for Earth Sciences - Matlab files include Gaussian numerical quadrature, Newton's method for finding roots, finite element method for 1D wave equation, and pattern formation (KPP and a system of two coupled PDEs).
Free Screen Video Recorder - Record screen activities and capture anything on the screen including windows, objects, menus, full screen and rectangular regions with Free Screen Video Recorder. Built-in editing tools include basic functions like resizing, cropping and rotating.
SignWriting Animation Tool - PLEASE, NOTE THAT THIS PROJECT IS DEAD !!!A 3D avatar that animate symbols from Sign Write language. It suppor the creation of static symbols and will support creation of animation files too.
Shareware Connection periodically updates pricing and software information of 'isValidSymbol' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'isValidSymbol' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of isValidSymbol.
SnapCrab - Nearly every PC users need to take screenshots from time to time, whether it is for personal or professional needs. While using the basic Windows screenshot capture method is available, it is not adequate for everyone. When you want to capture ...
Voila - Mac users have never felt much hassle as far as image editing goes, given the fact Apple itself offers two compelling image editing suites. However, serious users may find the inbuilt screen capturing options basic, the fact they are much ahead ...
Apple iMovie - For higher end video editing and post production related needs on Mac OS, the preferred choice is FCP in most instances. However, not all Mac users need to deal with a feature laden, sophisticated editor for casual needs. For casual to moderate ...
Sigma Internet Monitoring - There is no denying the huge importance of internet in human life. Without the web, it has literally become imposable to carry on a lot of personal and professional activities, irrespective of your age, gender and qualification. While the web ...
NovaBench - PC performance benchmarking is something that may not interest average users much but tech savvy lot resort to such apps to find out prowess and capability of their laptops and desktops. While there are quite a few PC benchmarking apps in market, ...
Wipe Expert 3 - Data security has become a serious issue for billions of computer users worldwide. From using encryption apps to backing up data in cloud, users are resorting to various measures to ensure safety of their data nowadays. However, you also need to ...
MAGIX Video easy - Editing videos was a complicated task even a few years back and it was restricted to studios and post production areas in general. However, advancements in computer technology and advent of numerous portable video capture devices have made things ...
Screenshot Captor - Nowadays, a lot of Windows users need to take screenshots for professional and personal usage needs. It may be required to share an interesting image from web site or part of web pages with friends, making tutorials etc. However, freeware screen ...
Tiranium Premium Security 2014 - Antivirus or Internet security software has become a mandatory requirement for computer users, including casual users and network administrators. However, it is quite commonplace for average PC users to get a little confused when selecting a ...
DVDFab DVD Copy - While a lot of computer users are switching from optical media to external and cloud storage services, a section of them still counts on DVD for storage and movie watching. At times it also becomes necessary to copy those DVDs that are getting ...