%% Convert String to Character Vector
% Create a string scalar. Starting in R2017a, you can create string scalars using double quotes. MATLAB® also displays strings with double quotes.

A = "Pythagoras"

%
% Convert A to a character vector using the char function. MATLAB displays character vectors with single quotes.

C = char(A)

% Copyright 2012 The MathWorks, Inc.