another quick question about string read
Ältere Kommentare anzeigen
gesNum = 6;
I want to get modelsq_6 other than modelsq_gesNum by using : sprintf('%s_%s', 'modelsq', 'gesNum'); I know this is wrong way, so how should I do?
1 Kommentar
Jan
am 13 Feb. 2013
@UTA: The documentation of sprintf does explain this clearly, so please read again:
help sprintf
doc sprintf
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 13 Feb. 2013
sprintf('modelsq_%d', gesNum);
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!