Create cell array of strings - MATLAB Cody - MATLAB Central

Problem 42592. Create cell array of strings

Difficulty:Rate

Convert the input to a cell array, but only if necessary.

If the input is a string, return a 1-by-1 cell array containing the string. If the input is a cell array of strings, return the input unaltered.

Solution Stats

58.25% Correct | 41.75% Incorrect
Last Solution submitted on Dec 04, 2024

Problem Comments

Solution Comments

Show comments
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0

Problem Recent Solvers54

Suggested Problems

More from this Author44

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!