Functions istext iscelltext

Version 1.0.0 (2.74 KB) by Bill Whiten
Test for char or string variables; Test for cell array of char or string variables.


Updated 26 Sep 2018

View License

Most function now allow either char of string variables.
However missing are functions to test for either string or char,
and to test for a cell array containing only string or char values.

Two functions v=istext(x) and v=iscelltext(x) are included or
can be used inline as:


Cite As

Bill Whiten (2023). Functions istext iscelltext (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with R2016b and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: Optional function arguments

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes