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"];
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers170
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5804 Solvers
-
Back to basics 11 - Max Integer
811 Solvers
-
Back to basics 17 - white space
280 Solvers
-
Fix the last element of a cell array
1799 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
601 Solvers
More from this Author28
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
the multitude of functionalities of strcat ist amazing!
is C++'s really the same? Actually didn't know it.