Use the following function: http://www.mathworks.com/help/matlab/ref/cellstr.html

>> B =  cellstr(A)

B = 

    'APR'
    'MAY'

>> B{1}

ans =

APR
Answer from Franck Dernoncourt on Stack Overflow
🌐
MathWorks
mathworks.com › matlabcentral › answers › 57027-convert-char-to-string
Convert char to string - MATLAB Answers - MATLAB Central
December 20, 2012 - I don't know how socks was 34 characters in the first example and only 5 characters ('Shane') in the next example. Are any of these what you want: ... I'm still confused about ['string', {'Cell string'}], because it looks like this joins elements of incompatible types. I never had tried it without explicitly converting the string by cellstr() at first. Sign in to comment. Sign in to answer this question. Find more on Data Type Conversion in Help Center and File Exchange ... Find the treasures in MATLAB Central and discover how the community can help you!
Discussions

how to convert a character into string
I read a line from notepad. It is in char. It need to be converted to string for conversion To read a line fid1=fopen('M:\decompiler\dct.txt','r') C_line = fgetl(fid1) to read a word ... More on mathworks.com
🌐 mathworks.com
1
0
January 6, 2016
convert Char to string type
I am reading data from serial port in the char format. the data format is data = 1 2.2345 (1*9 char size {including space after 1, and new line character 5}) how to convert char into st... More on mathworks.com
🌐 mathworks.com
1
0
August 1, 2022
How to convert char into string?
How to convert char into string? . Learn more about char to string conversion More on mathworks.com
🌐 mathworks.com
2
0
November 26, 2018
Converting a char array to string using MATLAB - Stack Overflow
String == Character array in MATLAB, (but you also have cell arrays of strings). – Stewie Griffin Commented Feb 16, 2016 at 14:33 More on stackoverflow.com
🌐 stackoverflow.com
🌐
Northwestern University
ece.northwestern.edu › local-apps › matlabhelp › techdoc › ref › strings.html
strings (MATLAB Functions)
X = double(S) converts the string to its equivalent double precision numeric codes. A collection of strings can be created in either of the following two ways: ... You can convert between character array and cell array of strings using char and cellstr. Most string functions support both types. ...
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types
Characters and Strings - MATLAB & Simulink
MATLAB stores all characters as Unicode characters. Both strings and character vectors use the same encoding. You can convert characters to their Unicode code values, and numbers to characters.
Find elsewhere
🌐
MathWorks
mathworks.com › matlabcentral › answers › 431985-how-to-convert-char-into-string
How to convert char into string? - MATLAB Answers - MATLAB Central
November 26, 2018 - I have "d879c14e5b1fa7a413aa46bbbc2b8710" this in char form and I want to convert this into string. As i want to split 2-2 character into binary so i want to split it into string. ... https://www.mathworks.com/matlabcentral/answers/431985-how-to-convert-char-into-string#comment_642392
🌐
Matlab Scripts
matlabscripts.com › char-to-string-matlab
Char to String in Matlab: A Quick How-To Guide
May 5, 2025 - Explanation: In this example, the character array `charArray` is converted into a string array called `strArray`. The transformation is straightforward and efficient, allowing you to seamlessly integrate this data into further string-processing tasks. In some situations, MATLAB allows for implicit conversion from character arrays to string arrays.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 297946-how-to-convert-char-to-array-of-string
how to convert char to array of string? - MATLAB Answers - MATLAB Central
August 1, 2016 - I have a list of signals named name_final = 'PECCalc_tqElFil2_VW_173','PECCtl_bDampCtl_VW_173' etc..(58 signals) store in the form of cell. I want to delete the last 4 characters (_173) from these names and store it in the form of array.
🌐
Reddit
reddit.com › r/matlab › why matlab added "strings" when we had 'char arrays'?
r/matlab on Reddit: Why MATLAB added "strings" when we had 'char arrays'?
June 1, 2024 -

I have that the two methods are used in parallel. The built-in functions want the 'char' arguments. Most users just simply use "str" and 'char' randomly. The worst part is that when I write a utility function I must support both. The real pain is checking is one of them is empty.

isempty('') does not yield the same result as isempty("")

This thing just makes me wonder, what's the point in introducing a dedicated stirng type after many many years?

Strings were not a thing before 2016b! Yes, strings were added in 2016, why?

🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › characters and strings
Text in String and Character Arrays - MATLAB & Simulink
MATLAB displays strings with double quotes and character vectors with single quotes. You can store any 1-by-n sequence of characters as a string, using the string data type. Enclose text in double quotes to create a string.
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › data type conversion
Convert Numeric Values to Text - MATLAB & Simulink
str = 'Sine Wave, Frequency = ' + string(freq) + {' Hz'} ... If your data contains integers that represent Unicode® values, use the char function to convert the values to the corresponding characters.
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types
Data Type Conversion - MATLAB & Simulink
You can convert these data types to text by using the string function, and you can convert text to these data types by using the datetime and duration functions. When you read text representing dates and times from spreadsheets and text files you can automatically convert the text to datetime or duration arrays. ... This example shows how to convert a variable in a table from a cell array of character vectors to a categorical array. ... If you include elements of unlike classes in a matrix, MATLAB converts some elements so that all elements of the resulting matrix are of the same type.