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
Example of modular program: In a modular program, there would be one main script which calls three separate functions to complete these tasks: A function to prompt an us

Interpolation and extrapolation: In most cases, it is desired to estimate values other than at the sampled data points. For illustration, we may want to estimate what the temp

Individual structure variable: The individual structure variable for one software package may look like this: The name of the structure variable is a package; it has f

Inverse of square matrix: The inverse is, hence the result of multiplying the scalar 1/D by each and every element in the preceding matrix. Note that this is not the matrix A,

Use of Nested if-else statements: By using the nested if-else to select from among the three possibilities, not all the conditions should be tested. In this situation, if x is

1. Write a MATLAB function (upperTriangle) using the functions you previously created to convert a matrix to upper triangular form. Start with row 1, column1. Find the row that has

Program to Counting in a while loop: The script initializes variable counter to 0. Then, in the while loop action, each and every time the user successfully enter a number, th

Illustration of Set operations: For illustration, given the vectors as shown below: >> v1 = 2:6 v1 = 2  3  4  5  6 >> v2 = 1:2:7 v2 = 1  3  5  7

Example of Menu driven modular program: As an illustration of such a menu-driven program, we will write a program to discover the constant e. The constant e, known as the n

Related Structure Functions: There are many functions which can be used with structures in a MATLAB. The function isstruct will return 1 for logical true when the variable arg