Problem 43663. Combine the first and last names
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
Robert Wagner
on 31 Oct 2023
the multitude of functionalities of strcat ist amazing!
Robert Wagner
on 31 Oct 2023
is C++'s really the same? Actually didn't know it.
Solution Comments
Show commentsGroup

Computational Geometry IV
- 20 Problems
- 12 Finishers
- Minimal cost
- Placing Beads Neatly in a Box
- Convex Hull Capture
- Find the sines of an isosceles triangle when given its area and height
- solid of revolution
- Height of a right-angled triangle
- solid of revolution
- Fun with a compass
- Height of a right-angled triangle
- Minimal cost
- Find the sides of an isosceles triangle when given its area and height from its base to apex
- Find the sines of an isosceles triangle when given its area and height
- Radiation Heat Transfer — View Factors (4)
- Radiation Heat Transfer — View Factors (5)
- The cake is a lie...
- Pancakes for everyone!
- Conic equation
- Why the heck are they blinking!?!?
- Find the Area of a Polygon
- Is It a Snake?
- Placing Beads Neatly in a Box
- Fun with a compass
- Angle bisectors
- Regular polygon bounded by and bounding a circle
- solid of revolution
- Height of a right-angled triangle
- Find the sides of an isosceles triangle when given its area and height from its base to apex
- Find the sines of an isosceles triangle when given its area and height
- Euclidean distance from a point to a polynomial
- Convex Hull Capture
- Under the sea: Snell's law & total internal reflection
Problem Recent Solvers160
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!