Azzera filtri
Azzera filtri

Question regarding cell to string conversion

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)


Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by