tft(1:2300) = tf(1:2300); tft(2046) = tft(2046) + delta; tft(2300:n) = tft(2300:n) + 2* delta;
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'k.', 'MarkerSize', 3), 
hold off; zoom on;

tft(1:2300) = tf(1:2300); tft(2046) = tft(2046) + delta; tft(2300:390) = tft(2300:3905) + 2* delta;
???  In an assignment  A(I) = B, the number of elements in B and
 I must be the same.

tft(1:2300) = tf(1:2300); tft(2046) = tft(2046) + delta; tft(2300:3905) = tft(2300:3905) + 2* delta;
fix_temp_freq
tft(1:2300) = tf(1:2300); tft(2046) = tft(2046) + delta; tft(2300:3905) = tft(2300:3905) + 2* delta;
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'k.', 'MarkerSize', 3), 
hold off; zoom on;

tft(1:2300) = tf(1:2300); tft(2046)=tft(2046)+delta; tft(2300:3905)=tft(2300:3905)+2*delta; tft(5222:5225)=tft(5222:5225)+2*delta;
tft(5226:5603)=tft(5226:5603)+2*delta;tft(5610:n)=tft(5610:n)-delta;
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'k.', 'MarkerSize', 3), 
hold off; zoom on;
figure;
fix_temp_freq
close all
disp(which('fix_temp_freq'));
E:\MatlabProj\FieldOpsSpecific\MUSE Review\fix_temp_freq.m
clear 'e:\matlabproj\fieldopsspecific\muse review\fix_temp_freq.m'
tft(1:2300) = tf(1:2300); tft(2046)=tft(2046)+delta; tft(2300:3905)=tft(2300:3905)+2*delta; tft(5222:5225)=tft(5222:5225)+delta;
tft(5226:5603)=tft(5226:5603)+2*delta;tft(5610:n)=tft(5610:n)-delta;
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 6), 
hold off; zoom on;

figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 5), 
hold off; zoom on;

figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 4), 
zoom on
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 6), 
zoom on
tft(5604:5605)=tft(5604:5605)+delta;tft(5608:5609)=tft(5608:5609)-2*delta;tft(15309:n)=tft(15309:n)+delta;
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 5), 
hold off; zoom on;

dbstack
;
pwd

ans =

g:\auv\day\t3\2000.240.06

dbstack
;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
jgb_fix
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 5), 
hold off; zoom on;

disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
jgb_fix
figure;
plot(tf, '.'); hold on; 
% plot(tfm, 'r.'); 
plot(tft, 'r.', 'MarkerSize', 5), 
hold off; zoom on;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
disp(which('fix_temp_freq'));
E:\MatlabProj\FieldOpsSpecific\MUSE Review\fix_temp_freq.m
clear 'e:\matlabproj\fieldopsspecific\muse review\fix_temp_freq.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
jgb_fix
??? Reference to a cleared variable delta.

Error in ==> g:\auv\day\t3\2000.240.06\jgb_fix.m
On line 8  ==> tft(2046)=tft(2046) + delta; 

figure;
plot(ctdlog(:, temperature), '.'); hold on; 
plot(temp, 'r.', 'MarkerSize', 5), 
??? Undefined function or variable 'temp'.

disp(which('fix_temp_freq'));
E:\MatlabProj\FieldOpsSpecific\MUSE Review\fix_temp_freq.m
clear 'e:\matlabproj\fieldopsspecific\muse review\fix_temp_freq.m'
jgb_fix
??? Reference to a cleared variable delta.

Error in ==> g:\auv\day\t3\2000.240.06\jgb_fix.m
On line 8  ==> tft(2046)=tft(2046) + delta; 

dbstop if error
dbstatus

Stop if error.
disp(which('fix_temp_freq'));
E:\MatlabProj\FieldOpsSpecific\MUSE Review\fix_temp_freq.m
clear 'e:\matlabproj\fieldopsspecific\muse review\fix_temp_freq.m'
jgb_fix
close all
figure;
plot(ctdlog(:, temperature), '.'); hold on; 
plot(temp, 'r.', 'MarkerSize', 5), 

hold off; zoom on;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
jgb_fix
disp(which('fix_temp_freq'));
E:\MatlabProj\FieldOpsSpecific\MUSE Review\fix_temp_freq.m
clear 'e:\matlabproj\fieldopsspecific\muse review\fix_temp_freq.m'
close all
figure;
plot(ctdlog(:, temperature), '.'); hold on; 
plot(temp, 'r.', 'MarkerSize', 5), 

hold off; zoom on;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.06\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.06\jgb_fix.m'
cd ..
clear
load dataCTD; load dataN;
??? Error using ==> load
dataCTD.mat: Can't open file.

dir

.           2000.240.05 2000.240.07 2000.240.09 2000.240.14 
..          2000.240.06 2000.240.08 2000.240.10 2000.240.15 

cd 2000.240.07
load dataCTD; load dataN;
disp(which('fix_temp_freq'));
E:\MatlabProj\FieldOpsSpecific\MUSE Review\fix_temp_freq.m
clear 'e:\matlabproj\fieldopsspecific\muse review\fix_temp_freq.m'
figure;
plot(tf, '.'); hold on; 
??? Undefined function or variable 'tf'.

fix_temp_freq
dbstack
;
dbstack
;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.07\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.07\jgb_fix.m'
dbstack
;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.07\jgb_fix.m
disp(char(which('jgb_fix','-all')));
g:\auv\day\t3\2000.240.07\jgb_fix.m
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.07\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.07\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.07\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.07\jgb_fix.m'
jgb_fix
cd ..
cd 2000.240.08
dir

.             dataCTD.mat   dataD.mat     dataN.m       methane.mat   
..            dataCrossB.m  dataGPS.m     dataN.mat     missiondata.m 
dataCTD.m     dataD.m       dataGPS.mat   methane.m     

load dataCTD; load dataN;
fix_temp_freq
dbstack
;
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.08\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.08\jgb_fix.m'
close all
cd ..
cd 2000.240.09
load dataCTD; load dataN;
fix_temp_freq
dbstack
;
disp(which('jgb_fix'));
disp(char(which('jgb_fix','-all')));
dbstack
;
disp(which('jgb_fix'));
disp(char(which('jgb_fix','-all')));
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.09\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.09\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.09\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.09\jgb_fix.m'
jgb_fix
close all
figure;
plot(tf, '.'); hold on; 
??? Undefined function or variable 'tf'.

jgb_fix
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.09\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.09\jgb_fix.m'
pwd

ans =

g:\auv\day\t3\2000.240.09

jgb_fix
??? Reference to a cleared variable tf.

Error in ==> g:\auv\day\t3\2000.240.09\jgb_fix.m
On line 31  ==> plot(tf, '.'); hold on; 

dbstack
> In g:\auv\day\t3\2000.240.09\jgb_fix.m at line 31
eval( 'if exist(''hold'',''var''), mauifunc(hold), end', '');
eval( 'if exist(''plot'',''var''), mauifunc(plot), end', '');
eval( 'if exist(''figure'',''var''), mauifunc(figure), end', '');
hold on
eval( 'if exist(''on'',''var''), mauifunc(on), end', '');
eval( 'if exist(''tf'',''var''), mauifunc(tf), end', '');
eval( 'if exist(''plot'',''var''), mauifunc(plot), end', '');
eval( 'if exist(''zoom'',''var''), mauifunc(zoom), end', '');
eval( 'if exist(''tft'',''var''), mauifunc(tft), end', '');
eval( 'if exist(''plot'',''var''), mauifunc(plot), end', '');
plot(tft, 'g.', 'MarkerSize', 5), 
??? Undefined function or variable 'tft'.

dbquit

» dbstack
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.09\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.09\jgb_fix.m'
jgb_fix
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.09\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.09\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.09\jgb_fix.m
disp(char(which('jgb_fix','-all')));
g:\auv\day\t3\2000.240.09\jgb_fix.m
cd ..
cd 2000.240.10
load dataCTD; load dataN;
??? Error using ==> load
dataCTD.mat: Can't open file.

dir

.             dataCrossB.m  dataN.m       missiondata.m 
..            dataD.m       jgb_fix.m     
dataCTD.m     dataGPS.m     methane.m     

dataCTD; dataN
fix_temp_freq
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.10\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.10\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.10\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.10\jgb_fix.m'
jgb_fix
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.10\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.10\jgb_fix.m'
jgb_fix
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.10\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.10\jgb_fix.m'
jgb_fix
close all
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.10\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.10\jgb_fix.m'
pwd

ans =

g:\auv\day\t3\2000.240.10

cd ..
cd 2000.240.14
dir

.             dataCTD.m     dataD.m       dataN.m       missiondata.m 
..            dataCrossB.m  dataGPS.m     methane.m     

dataCTD; dataN
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.14\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.14\jgb_fix.m'
dataCTD; dataN
dir

.             dataCrossB.m  dataN.m       missiondata.m 
..            dataD.m       jgb_fix.m     
dataCTD.m     dataGPS.m     methane.m     

whos
  Name                 Size         Bytes  Class

  OBS                  1x1              8  double array
  ans                  1x25            50  char array
  cond_frequency       1x1              8  double array
  conductivity         1x1              8  double array
  ctd_depth         5125x1          41000  double array
  ctdlog           15726x11       1383888  double array
  dBar              5125x1          41000  double array
  dataNav          19714x25       3942800  double array
  delta                1x1              8  double array
  east_current         1x1              8  double array
  efix                 1x1              8  double array
  filter_depth         1x1              8  double array
  filter_east          1x1              8  double array
  filter_north         1x1              8  double array
  fluor                1x1              8  double array
  heading_bias         1x1              8  double array
  i                    1x1              8  double array
  mAltitude            1x1              8  double array
  mDepth               1x1              8  double array
  mGpsEast             1x1              8  double array
  mGpsNorth            1x1              8  double array
  mGpsValid            1x1              8  double array
  mOmega_x             1x1              8  double array
  mOmega_y             1x1              8  double array
  mOmega_z             1x1              8  double array
  mPhi                 1x1              8  double array
  mPos_x               1x1              8  double array
  mPos_y               1x1              8  double array
  mPsaRange            1x1              8  double array
  mPsi                 1x1              8  double array
  mTheta               1x1              8  double array
  mWaterSpeed          1x1              8  double array
  nfix                 1x1              8  double array
  north_current        1x1              8  double array
  o2current            1x1              8  double array
  o2temp               1x1              8  double array
  pH                   1x1              8  double array
  spare                1x1              8  double array
  speed_bias           1x1              8  double array
  temp_frequency       1x1              8  double array
  temperature          1x1              8  double array
  time                 1x1              8  double array

Grand total is 676148 elements using 5409034 bytes

fix_temp_freq

close all
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.14\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.14\jgb_fix.m'
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.14\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.14\jgb_fix.m'
jgb_fix
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.14\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.14\jgb_fix.m'
jgb_fix
disp(which('jgb_fix'));
g:\auv\day\t3\2000.240.14\jgb_fix.m
clear 'g:\auv\day\t3\2000.240.14\jgb_fix.m'
cd ..
cd 2000.240.15
dir

.             dataCTD.m     dataD.m       dataN.m       missiondata.m 
..            dataCrossB.m  dataGPS.m     methane.m     

dataCTD; dataN
fix_temp_freq
whos
  Name                 Size         Bytes  Class

  OBS                  1x1              8  double array
  ans                  1x1              8  double array
  cond_frequency       1x1              8  double array
  conductivity         1x1              8  double array
  ctd_depth        15726x1         125808  double array
  ctdlog              25x11          2200  double array
  dBar             15726x1         125808  double array
  dataNav          55020x25      11004000  double array
  delta                1x1              8  double array
  east_current         1x1              8  double array
  efix                 1x1              8  double array
  filter_depth         1x1              8  double array
  filter_east          1x1              8  double array
  filter_north         1x1              8  double array
  fluor                1x1              8  double array
  heading_bias         1x1              8  double array
  i                    1x1              8  double array
  mAltitude            1x1              8  double array
  mDepth               1x1              8  double array
  mGpsEast             1x1              8  double array
  mGpsNorth            1x1              8  double array
  mGpsValid            1x1              8  double array
  mOmega_x             1x1              8  double array
  mOmega_y             1x1              8  double array
  mOmega_z             1x1              8  double array
  mPhi                 1x1              8  double array
  mPos_x               1x1              8  double array
  mPos_y               1x1              8  double array
  mPsaRange            1x1              8  double array
  mPsi                 1x1              8  double array
  mTheta               1x1              8  double array
  mWaterSpeed          1x1              8  double array
  n                    1x1              8  double array
  nfix                 1x1              8  double array
  north_current        1x1              8  double array
  o2current            1x1              8  double array
  o2temp               1x1              8  double array
  pH                   1x1              8  double array
  spare                1x1              8  double array
  speed_bias           1x1              8  double array
  temp_frequency       1x1              8  double array
  temperature          1x1              8  double array
  tf                  25x1            200  double array
  tft                 25x1            200  double array
  time                 1x1              8  double array

Grand total is 1407316 elements using 11258528 bytes

fix_temp_freq
tf

tf =

  1.0e+003 *

    4.2674
    4.2673
    4.2673
    4.2673
    4.2673
    4.2673
    4.2672
    4.2672
    4.2672
    4.2671
    4.2671
    4.2671
    4.2670
    4.2670
    4.2670
    4.2669
    4.2669
    4.2669
    4.2669
    4.2669
    4.2669
    4.2669
    4.2669
    4.2669
    4.2669

plot(ctdlog(:, temp_frequency));
plot(ctdlog(:, cond_frequency));
dir

.             dataCTD.m     dataD.m       dataN.m       missiondata.m 
..            dataCrossB.m  dataGPS.m     methane.m     

pwd

ans =

g:\auv\day\t3\2000.240.15

dir

.             dataCTD.m     dataD.m       dataN.m       missiondata.m 
..            dataCrossB.m  dataGPS.m     methane.m     

help dir

 DIR List directory.
    DIR directory_name lists the files in a directory. Pathnames and
    wildcards may be used.  For example, DIR *.m lists all the M-files
    in the current directory.
 
    D = DIR('directory_name') returns the results in an M-by-1
    structure with the fields: 
        name  -- filename
        date  -- modification date
        bytes -- number of bytes allocated to the file
        isdir -- 1 if name is a directory and 0 if not
 
    See also WHAT, CD, TYPE, DELETE.

dir

.             dataCTD.m     dataD.m       dataN.m       missiondata.m 
..            dataCrossB.m  dataGPS.m     methane.m     

whos
  Name                 Size         Bytes  Class

  OBS                  1x1              8  double array
  ans                  1x25            50  char array
  cond_frequency       1x1              8  double array
  conductivity         1x1              8  double array
  ctd_depth        15726x1         125808  double array
  ctdlog              25x11          2200  double array
  dBar             15726x1         125808  double array
  dataNav          55020x25      11004000  double array
  delta                1x1              8  double array
  east_current         1x1              8  double array
  efix                 1x1              8  double array
  filter_depth         1x1              8  double array
  filter_east          1x1              8  double array
  filter_north         1x1              8  double array
  fluor                1x1              8  double array
  heading_bias         1x1              8  double array
  i                    1x1              8  double array
  mAltitude            1x1              8  double array
  mDepth               1x1              8  double array
  mGpsEast             1x1              8  double array
  mGpsNorth            1x1              8  double array
  mGpsValid            1x1              8  double array
  mOmega_x             1x1              8  double array
  mOmega_y             1x1              8  double array
  mOmega_z             1x1              8  double array
  mPhi                 1x1              8  double array
  mPos_x               1x1              8  double array
  mPos_y               1x1              8  double array
  mPsaRange            1x1              8  double array
  mPsi                 1x1              8  double array
  mTheta               1x1              8  double array
  mWaterSpeed          1x1              8  double array
  n                    1x1              8  double array
  nfix                 1x1              8  double array
  north_current        1x1              8  double array
  o2current            1x1              8  double array
  o2temp               1x1              8  double array
  pH                   1x1              8  double array
  spare                1x1              8  double array
  speed_bias           1x1              8  double array
  temp_frequency       1x1              8  double array
  temperature          1x1              8  double array
  tf                  25x1            200  double array
  tft                 25x1            200  double array
  time                 1x1              8  double array

Grand total is 1407340 elements using 11258570 bytes

;
