% Purpose % gets variable information from the data file. % % Synopsis % mexeps('inqvar',varcode) % [sname, lname, frmt, units] = mexeps('inqvar',varcode) % % Description % It returns the variable information from the data file. The % variable is refered to by its variable code, varcode, which % must be presented in the current data file. If no output % argument on the left side, the result will be printed on % screen in form: % % code:short name:long name:format:units % % When there are 4 output arguments on left side, it returns % above information to them (variable code is not included). % % Examples % Open a data file and get variable information of first variabel. % % currentfile = mexeps('openr','datafile.cdf'); % var_list = mexeps('varlist'); % varcode = var_list(1); % [sname, lname, frmt, units] = mexeps('inqvar',varcode); % ... % % See Also % varlist, inqcode, inqaxis %