MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays of the first names and last names. Your job is to join the first names with the corresponding last names, and output a new string array.
For example, if the inputs are
firstnames = ["Donald"; "Hillary"]; lastnames = ["Trump"; "Clinton"];
the output should be:
names = ["Donald Trump"; "Hillary Clinton"];
It is interesting that MATLAB's string concatenation (R2016b) is the exactly same as C++'s string concatenation.
Back to basics 16 - byte order
150 Solvers
Flip the main diagonal of a matrix
428 Solvers
264 Solvers
281 Solvers
Flip the vector from right to left
757 Solvers