Passing information between arrays
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
name3d = [1x31 char] [1x31 char] [1x31 char]
ct = 1
for i = 1:length(name3d)
tableName{ct} = name3d(i)
ct = ct + 1;
end
This code results in:
tableName = {1x1 cell} {1x1 cell} {1x1 cell}
What I want is:
tableName = [1x31 char] [1x31 char] [1x31 char]
The intent here is to take an array of strings and append them onto an existing array without nesting. The nesting is making it impossible for me to export . . .
2 Commenti
James Tursa
il 25 Apr 2013
Typo in your posted code? The first iteration has ct = 0, which would result in tableName{0} = etc, which should have resulted in an error.
Risposta accettata
Più risposte (2)
Sean de Wolski
il 25 Apr 2013
What's wrong with:
tableName = name3d
? It looks like it's already the desired result.
0 Commenti
Vedere anche
Categorie
Scopri di più su Logical 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!