Ischar function - string, MATLAB in Engineering

ischar function:

The ischar function return the logical true if an array is a character array, or logical false if not.

>> vec = 'EK127';

>> ischar(vec)

ans =

1

>> vec = 3:5;

>> ischar(vec)

ans =

0

 

 

 

Posted Date: 10/20/2012 5:39:46 AM | Location : United States







Related Discussions:- Ischar function - string, Assignment Help, Ask Question on Ischar function - string, Get Answer, Expert's Help, Ischar function - string Discussions

Write discussion on Ischar function - string
Your posts are moderated
Related Questions
Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal

Function rmfield - structure: The function rmfield eliminates a field from the structure. It returns a new structure with field eliminated, but does not modify the original st

Variable Scope: The scope of any of variable is the workspace in which it is valid. The workspace generated in the Command Window is known as the base workspace. As we know

Gauss, Gauss-Jordan elimination: For 2 × 2 systems of equations, there are well-defined, easy solution techniques. Though, for the larger systems of equations, finding solutio

Function strncmp: The function strncmp compares only the first n characters in the strings and ignores the rest. The initial two arguments are strings to compare, and third ar

num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s

printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume

Appending variables to the Mat-File: Appending to the file adds to what has been saved in a file, and is accomplished by using the -append option. For illustration, supposing

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F