Effacer les filtres
Effacer les filtres

how to dynamically assign data to a variable

2 vues (au cours des 30 derniers jours)
Amit
Amit le 3 Déc 2014
for ii=1:20
assignin('base', ['PClean_',num2str(ii)],ActualReading(1:end,17));
PClean=['PClean_%d',ii];
I wish to assign data of PClean_1,PClean_2,PClean_3,PClean_4....and so on to PClean but i am not able to assign it for each loop

Réponse acceptée

Sean de Wolski
Sean de Wolski le 3 Déc 2014

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by