how to dynamically assign data to a variable

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by