I want to substitute SOME (not all) elements in LNOx_vert_ocean with some elements in LNOx_vert_land.
The substitution will be based off of a 3rd array LU (land use). This array is 332 x 165. If the value of the elements in LU is not equal 16 then that is land. Those are the values to be substituted into LNOx_vert_ocean.
Amongst several things I have tried the following which did not work: LNOx_vert = LNOx_vert_ocean(LNOx_vert_land(LU ~= 16));
I got the following error: ??? Subscript indices must either be real positive integers or logicals.
What am I doing wrong? I am limited to version 2009a