annotate dsp/linlogspace.m @ 36:9e7be347b3a0
Renamed sequence classes to avoid clashes with seq methods;
Fixed default slicing dimension while retaining behaviour of window.m;
Updated use of sequences in dsp/synth.
author |
samer |
date |
Thu, 24 Jan 2013 14:51:23 +0000 |
parents |
c3b0cd708782 |
children |
|
rev |
line source |
samer@32
|
1 % linlogspace - joined linear/log map
|
samer@32
|
2 %
|
samer@32
|
3 % linlogspace ::
|
samer@32
|
4 % F0:nonneg ~'starting of linear ramp',
|
samer@32
|
5 % F1:nonneg ~'crossover from linear to log',
|
samer@32
|
6 % N1:natural ~'number of steps in linear part',
|
samer@32
|
7 % R1:nonneg ~'ratio of increase in log part',
|
samer@32
|
8 % N2:nonneg ~'number of steps in log part'
|
samer@32
|
9 % -> [[1,1+N1+N2]->nonneg].
|
samer@32
|
10
|
samer@32
|
11 function f=linlogspace(f0,f1,n1,r1,n2), f = [ linspace(f0, f1, n1), f1*r1.^(1:n2) ]; end
|