Strvcat function - concatenation, MATLAB in Mathematics

strvcat function - concatenation:

The function strvcat will concatenate it vertically, that means that it will generate a column vector of the strings.


>> strvcat(first,last)

ans =



>> size(ans)

ans =

2  5


Note that the strvcat will pad with additional blanks automatically, in this situation to make both the strings having length of 5.

Posted Date: 10/20/2012 5:06:02 AM | Location : United States

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

Write discussion on Strvcat function - concatenation
Your posts are moderated
Related Questions
Minimum and Maximum Value The MATLAB has built-in functions for numerous statistics. For illustration, min and max to find the minimum or maximum value in a data set. >> x

Illustration of Writing to files: Here is the other illustration in which a matrix is written to a file. At First, an arbitrary 2 × 4 matrix is generated, and then it is writt

Illustration of Advanced file input and output: For illustration, to refer to the third number in the first element of the cell array: >> subjdata{1}(3) ans =

Built-in functions for Complex numbers:   We know that in MATLAB both i and j are built-in functions which return √-1 (therefore, they can be thought of as built-in constants).

Functions to create special matrices: The MATLAB also has various functions which create special matrices. For illustration, the zeros function generates a matrix of all zeros

Example of Minimum and Maximum Value For matrices, the functions min and max operate column wise by the default: >> mat = randint(2,4,[1 20]) mat =    9   10   1

Illustration of a recursive function: illustration is of a recursive function which does not return anything, but simply prints. The below function prtwords receives a sentenc

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

Strings as Vectors: The Strings are considered as vectors of characters-or in another words, a vector in which each and every element is a single character-so numerous vector

Nested IF-ELSE statements: The if-else statement is used to select between the two statements. In order to select from more than two statements, the if-else statements can als