LET combined = IF k eq 1 THEN var1 ELSE var2
from which combined[k=1] gives var1 and combined[k=2] gives
var2.
Ansley Manke
Xin Jin wrote:
Hi Ferreters,How can I combine two variables with same sizes to form another variable? For example,
I have a variable from two data sets, let's say, temp1 and temp2. I want to get a variable temp with
temp(1,:)=temp1
temp(2,:)=temp2
Are there any methods to do this?Thanks.Xin-- ________________________________________ Xin Jin Inst.of Geophysics and Planetary Physics University of California Los Angeles 5845 Slichter Hall Los Angeles, CA 90095-4996, USA phone: (310) 825 4526 fax : (310) 206 3051 email: xjin@igpp.ucla.edu
--
Ansley Manke Pacific Marine Environmental Laboratory Seattle
WA (206)526-6246