Home > FA-MVEMD > 1D > driver_1dnv_example.m

# driver_1dnv_example

## PURPOSE

cleanup

## SYNOPSIS

This is a script file.

## DESCRIPTION

    cleanup

## CROSS-REFERENCE INFORMATION

This function calls:

- EMD1DNV Purpose:

This function is called by:

## SOURCE CODE

    0001 %cleanup
    0002 clearvars
    0003 close all
    0004
    0005 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    0006 %Parameters
    0007 param.n_grid_1    = 500;  %Grid size in dimension 1
    0008 param.nimfs       = 3;    %Maximum number of IMFs that can be stored
    0009 param.type        = 5; %type of window size
    0010 param.tol         = 0.05; %sifting tolerance
    0011 param.plot        = 'on'; %plots on
    0012 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    0013
    0014 t = linspace(0,6*pi,param.n_grid_1);
    0015
    0016 u = 2.5*cos(t); %Simple Signal
    0017
    0018 v = 2.5*cos(5*t); %Simple Signal
    0019
    0020 w = u+v;
    0021
    0022 Signal = [u',v',w',(w'+v')]; %Make sure signals are column vectors while being passed to EMD function
    0023
    0024 Results = EMD1DNV(Signal,t',param);
    0025
    0026
    0027