Change cell object to char
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I convert the name object to be a char instead of a cell?
Thank you very much.
Emily
0 Kommentare
Antworten (1)
Fangjun Jiang
am 3 Nov. 2022
a={'abc'}
whos a
b=char(a)
whos b
4 Kommentare
Fangjun Jiang
am 3 Nov. 2022
Might it be that this field 'name' in that nested structure requires a cell of string?
try
SubjStats(1, 1).basis.stim.values{1, 1}.name='abc'
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!