⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fwa1sym.m

📁 This package is a free collection of Matlab routines for computing wave atom transforms in one, two
💻 M
字号:
function res = fwa1sym(x,pat,tp)% fwa1sym - forward wave atom transform (symmetric version)% -----------------% INPUT% --% x is a real N-by-1 vector. N is a power of 2.% --% pat specifies the type of frequency partition which satsifies% parabolic scaling relationship. pat can either be 'p' or 'q'.% --% tp is the type of tranform.% 	'ortho': orthobasis% 	'complex': complex-valued frame with redunancy 2.% -----------------% OUTPUT% --% res is an array containing all the wave atom coefficients. If% tp=='ortho', then res is of size N-by-1. If tp=='complex', then res is % of size N-by-2.% -----------------% Written by Lexing Ying and Laurent Demanet, 2007if( ismember(tp, {'ortho','directional','complex'})==0 | ismember(pat, {'p','q','u'})==0 )    error('wrong');  end  x = x(:);    call = fwa1(x,pat,tp);    N = numel(x);  res = zeros(N,size(call,2));  for i=1:size(call,2)    c = call(:,i);    y = zeros(N,1);    for s=1:length(c)      D = 2^s;      nw = length(c{s});      for I=0:nw-1        if(~isempty(c{s}{I+1}))          y( I*D+[1:D] ) = c{s}{I+1};        end      end    end    res(:,i) = y;  end  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -