function f=getMinFreqaxis(maxf); %% =========================================================================== %getMinFreqaxis - Finds minimal set for frequency axis % % Parameter: maxf The max frequency to get % Returns: f The minimum set of frequencies needed % % Example(s): % % Algorithmic details: % % Reference: %% =========================================================================== %% =========================================================================== % Copyright (C) 1998 by Telia Research AB, Lulea, Sweden; All rights reserved. % Project : FSAN duplex model % Author(s) : Daniel Bengtsson (Daniel.J.Bengtsson@Telia.se) % : Tomas Nordstrom (Tomas.Nordstrom@FTW.at) % % CVS: $Id: getMinFreqaxis.m,v 1.14 2000/11/13 14:53:32 tono Exp $ %% =========================================================================== % Change History % 1998-12-17 (Dab) Created % 1998-12-21 (ToNo) Added comments % 1999-01-07 (Dab) +/- 1e3 on every frequency point % 1999-02-26 (ToNo) Added frequency points for cable model breakpoints % 1999-08-12 (DaB) Added 4.3 resolotion over ADSL band if ADSL is evaluated % 1999-08-19 (DaB) Updated for new tfplan structure % 1999-09-30 (DaB) Rewritten for new ex struct % 2000-03-03 (GS) Added support for SDSL % 2000-09-22 (ToNo) Removed the 100Hz step stuff for SDSL %% =========================================================================== global ex; if nargin<1, maxf=ex.param.frequency.max; end n=length(ex.tfplist); f=[ex.param.frequency.min maxf]; for i=1:n, tmp=ex.tfplist(i).PSD.downstream; if strncmp(tmp,'calcPSD',7), start=findstr(tmp,'['); stop=findstr(tmp,']'); tmp=str2num(tmp((start+1):(stop-1))); tmp=tmp(1:2:length(tmp)); tmp2=tmp+1e3; tmp3=tmp-1e3; tmp2=union(tmp2,tmp3); tmp=union(tmp,tmp2); ind=find((tmp>0)&(tmp0)&(tmp