Cody

Problem 43009. Back to Basics - New Data Type in R2016b - convert a char to a string

Solution 1460770

Submitted on 11 Mar 2018 by GEORGIOS BEKAS
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x ='abcdef'; y_correct = string(x) assert((convert2string(x)==y_correct))

y_correct = "abcdef"

Suggested Problems

More from this Author2

Community Treasure Hunt

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

Start Hunting!