Question regarding cell to string conversion

2 views (last 30 days)
Sameer on 7 Aug 2014
Commented: Sameer on 7 Aug 2014
Hello all
I have a cell called A which looks like
I want to convert from cell to string but I am not able to do so because of the different lengths each cell element.
Can anyone please guide me through this?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 7 Aug 2014
Edited: Azzi Abdelmalek on 7 Aug 2014
v={'E1'; 'E34'; 'E2';'E12'}
w=cellfun(@(x) [x repmat(' ',1,n-numel(x))],v,'un',0)
%or simply

More Answers (0)

Community Treasure Hunt

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

Start Hunting!