Recent content by Halsey

  1. H

    MATLAB How can I use the find function to replace missing values in a 4D array?

    Hi all- I have a question regarding using the find function as opposed to if statements in finding values in a 4D array. These are climate variables, such as temperature (in Kelvin). Missing values are represented as 10^15, and I want to change them to NaN which plots much nicer. I have...
  2. H

    MATLAB MATLAB char array with variable names

    ==> I just realized that the last line should be var_names(a+1,:) because Matlab indices begin with 1, but that is not the problem. err msg is: Warning: Out of range or non-integer values truncated during conversion to character. > In read_hdf at 20 ? Subscripted assignment...
  3. H

    MATLAB MATLAB char array with variable names

    Hello all. I am having troubles reading in data(from a .hdf file) and giving it my own variable names. I have created a character array var_names with the names I wish to use. The .hdf variables are 3D and 4D (they are climate parameters). What I am trying to do is loop through the...
Back
Top