Prev: How do i call an m file or mex file from a standalone application
Next: Changing variable name in for loop
From: Eli Melaas on 24 Mar 2010 17:02 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! |