diff options
| author | drowe67 <[email protected]> | 2023-11-19 19:11:10 +1030 |
|---|---|---|
| committer | David Rowe <[email protected]> | 2023-11-19 19:11:10 +1030 |
| commit | f778670d0c711c4d72d71adcd401997cb603f7c9 (patch) | |
| tree | 1d63bb1c0aa622a8f45e004a0b25817aeed99ea0 /octave | |
| parent | def80d4bf628e55afc31ccd8b9648c0308323b80 (diff) | |
sinusoidal figure OK
Diffstat (limited to 'octave')
| -rw-r--r-- | octave/plamp.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/octave/plamp.m b/octave/plamp.m index e32d102..6f0478f 100644 --- a/octave/plamp.m +++ b/octave/plamp.m @@ -92,6 +92,13 @@ function plamp(samname, f, epslatex=0) fn = sprintf("%s_%d_sn.tex",samname,f); print(fn,"-depslatex",sz); printf("\nprinting... %s\n", fn); + % file of points to plot in sinusoidal model + fn = sprintf("%s_%d_sn.txt",samname,f); + t_length = 4; s_max = 2; s=s*s_max/max(abs(s)); + N = length(s); t = (0:N-1)*t_length/N; + s_save = [t' s']; size(s_save) + save("-ascii",fn,"s_save"); printf("printing... %s\n", fn); + figure(2); fn = sprintf("%s_%d_sw.tex",samname,f); print(fn,"-depslatex",sz); printf("printing... %s\n", fn); |
