Effacer les filtres
Effacer les filtres

quick question about string read

2 vues (au cours des 30 derniers jours)
UTA
UTA le 13 Fév 2013
I use 'sprintf' function get a string and store in a1 as follow: % a1 = sprintf('%s_%s', 'modelsq', '1');
I just want to load the mat file which name is modelsq_1, however, it is fail to do like this: % load a1; how should I do? thank you very much!

Réponse acceptée

José-Luis
José-Luis le 13 Fév 2013

Plus de réponses (1)

Matt Kindig
Matt Kindig le 13 Fév 2013
Use the functional form of load, i.e.
load(a1);

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by