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 =

Bird

house

>> 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
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

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

Customizing Plots : There are numerous ways to customize figures in the Figure Window. On clicking the Plot Tools icon will bring up the Property Editor & Plot Browser, with ma

Plot Functions: Faraway, we have plotted to generate two-dimensional plots and bar to generate bar charts. We have seen how to clear the Figure Window by using clf, and how to

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

Differentiation: The derivative of a function y = f(x) can be written as follows or f  '(x) and is defined as the rate of change of the dependent variable y with respe

Illustration of Writing variables to a file: For illustration, in the below session in the Command Window, 3 variables are generated; these are then exhibited using who. Then,

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

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

Built in recursive function in MATLAB: We have seen that the built-in function in MATLAB to compute factorials, termed as the factorial and we know how to implement the iterat