From: Eli Melaas on 24 Mar 2010 17:07 I would like to change the name of pre-existing variables in a for loop such as the following: for i =2:6 UM.ET.hh0i = UM.UM0i.L4(:,17); UM.H.hh0i = UM.UM0i.L4(:,15); UM.Rn.hh0i = UM.UM0i.L4(:,5); UM.VPD.hh0i = UM.UM0i.L4(:,9); UM.Temp.hh0i = UM.UM0i.L4(:,11); UM.friction.hh02 = UM.UM0i.L2(:,6); UM.wind.hh02 = UM.UM0i.L2(:,9); end where I have already created UM.ET.hh02, UM.Rn.hh02, etc. Thanks!
|
Pages: 1 Prev: Changing variable name in for loop Next: Simulink Help please |