Strcat function - concatenation, MATLAB in Mathematics

Strcat function - Concatenation:

The strcat function, though, will eliminate the trailing blanks from strings before concatenating. Note that in these illustrations, the trailing blanks from str1 are eliminated, while the leading blanks from str2 are not:

>> strcat(str1,str2)

ans =

xxx   yyy

>> length(ans)

ans =

9

>> strcat(str2,str1)

ans =

   yyyxxx

>> length(ans)

ans =

9

Posted Date: 10/20/2012 5:05:12 AM | Location : United States







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

Write discussion on Strcat function - concatenation
Your posts are moderated
Related Questions
Built-in function for Differentiation: The MATLAB has a built-in function, diff that returns the differences between consecutive elements in a vector. For illustration, >>

Using Functions with the Vectors and Matrices: As MATLAB is written to work with the vectors and matrices, the whole vector or matrix can be passed as an argument to the funct

Use of logical vector: Determine how many elements in the vector vec were greater than 5, the sum function can be used on the resulting vector isg: >> sum(isg) ans =

Refer the subset of a matrix: It is also possible to refer to the subset of a matrix. For illustration, this refers to the first & second rows, second & third columns: >> m

Sorting The Sorting is a process of putting a list in order; either in descending (maximum to minimum), or ascending (minimum to maximum) order. For illustration, here is a li

Strings as matrix: The matrix can be generated, that consists of strings in each row. Therefore, essentially it is created as a column vector of strings, but the final result

Logical Vectors: The relational operators can also be used with the vectors and matrices. For illustration, let's say that there is a vector, and we want to compare each eleme

How do I write a product series running from i to n of x''s using a for loop?

Function fopen - file function: The permission string in the call to the fopen function identifies that the file is opened for writing to it. Just as when reading from a file,

Complex numbers: A complex number is commonly written in the form z = a + bi here a is known as the real part of the number z, b be the imaginary part of z, and i is √-1