Commit 38777adc authored by Pierre Cazenave's avatar Pierre Cazenave

Attempt at generating a 3D array without resorting to a couple of loops. Not...

Attempt at generating a 3D array without resorting to a couple of loops. Not yet tested (hence it is commented out)
parent 448937cf
......@@ -201,6 +201,8 @@ netcdf.putVar(nc,itime_varid,floor(time));
netcdf.putVar(nc,itime2_varid,0,numel(time),mod(time,1)*24*3600*1000);
% Create 3D array from three 1D arrays
% temp = repmat(obc_temp, [nObc, nSiglay, 1]);
% salt = repmat(obc_salt, [nObc, nSiglay, 1]);
for i=1:nObc
for j=1:nSiglay
temp(i,j,:) = obc_temp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment