how to dynamically assign data to a variable

2 次查看(过去 30 天)
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

采纳的回答

Sean de Wolski
Sean de Wolski 2014-12-3

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by