Corrected bug with time vector used in plotting scripts.

这个提交包含在:
craig-warren
2018-07-17 15:42:20 +01:00
父节点 bdef5c5ac5
当前提交 a704243598
共有 5 个文件被更改,包括 9 次插入10 次删除

查看文件

@@ -20,7 +20,7 @@ if filename ~= 0
header.nrx = h5readatt(fullfilename, '/', 'nrx');
% Time vector for plotting
time = linspace(0, (header.iterations)*(header.dt), header.iterations)';
time = linspace(0, (header.iterations - 1) * header.dt, header.iterations)';
% Initialise structure for field arrays
fields.ex = zeros(header.iterations, header.nrx);

查看文件

@@ -17,8 +17,8 @@ if filename ~= 0
field = input(prompt,'s');
fieldpath = strcat('/rxs/rx1/', field);
field = h5read(filename, fieldpath)';
time = linspace(0, iterations*dt, iterations)';
traces = 0:size(field,2);
time = linspace(0, (iterations - 1) * dt, iterations)';
traces = 0:size(field, 2);
fh1=figure('Name', filename);
clims = [-max(max(abs(field))) max(max(abs(field)))];
@@ -50,4 +50,4 @@ if filename ~= 0
set(fh1,'PaperPosition', [xMargin yMargin xSize ySize])
set(fh1,'PaperOrientation', 'portrait')
end
end