MATLAB: Question using fprintf for words

fprintf

I know how to use fprintf for a string of numbers but I was wondering if there is way to assign it to variable or words such as
A= ['jan','feb','march','april']
fprintf('% \n',A)
to get output
jan
feb
march
april

Best Answer

A= {'jan','feb','march','april'};
fprintf('%s \n',A{:})
Related Question