how to properly use num2str with string input for load or title funtions.
Afficher commentaires plus anciens

Any idea why the numerical value isn't properly converted into a string?
Réponse acceptée
Plus de réponses (1)
Neuropragmatist
le 14 Août 2019
I'm guessing the files you want to load are named something like: 'GST_amorph_P900_Reflection'?
If that's the case you need to make the filename a single string using square brackets:
load(['GST_amorph',num2str(P_names(i)),'_Reflection'])
You will have to do something similar with the line after this one too.
Hope this helps,
M.
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!