how to dynamically assign data to a variable

2 views (last 30 days)
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

Accepted Answer

Sean de Wolski
Sean de Wolski on 3 Dec 2014

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!