Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.

Commit f7bcf01

Browse files
committed
Minimal changes
1 parent eb5931b commit f7bcf01

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

norm_spectrogram.m

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
% 4. Spectrum is smoothed by 5 points halfwidth moving average.
1111
% 5. Each element of spectrum is normalized by maximum epsectral
1212
% amplitude.
13-
%
13+
%
1414
% Usage:
1515
% matrix = normspectrogram(t, acc)
1616
% [matrix, matrix_t, matrix_f] = normspectrogram(t, acc)
@@ -82,7 +82,7 @@
8282
t_ini = 0;
8383
tarrsize = 1;
8484
while true
85-
t_ini = t_ini + WINDOW_TIME_MOVEMENT;
85+
t_ini = t_ini + WINDOW_TIME_MOVEMENT;
8686
if t_ini + WINDOW_TIME > t(end)
8787
break;
8888
end

plot_norm_matrix.m

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ function plot_norm_matrix(m, mt, mf, t, acc, regname)
4747
h.LineColor = 'red';
4848
hold off;
4949
ylabel('frequency (Hz)');
50-
xlim([0 mt(end)]);
51-
ylim([0.4 mf(end)]);
50+
xlim([0, mt(end)]);
51+
ylim([0.4, mf(end)]);
5252

5353
%% Plot seismic
5454
subplot(2, 1, 2);
5555
plot(t, acc, 'k');
5656
xlabel('Time (s)');
5757
ylabel('a (g)');
58-
xlim([0 t(end)]);
58+
xlim([0, t(end)]);
5959
grid on;
6060

6161
end

0 commit comments

Comments
 (0)