Prueba de los utilitarios de la biblioteca.
- Autor
- Fernando Pujaico Rivera
- Fecha
- 28-01-2012
#include <config.h>
#include <stdlib.h>
#include <pds/pdsdf.h>
#include <pds/pdsvector.h>
#include "extras.h"
int main(int argc, char** argv)
{
PdsVector *Hnum=NULL;
PdsVector *Hden=NULL;
PdsVector *H=NULL;
PdsVector *Hband=NULL;
PdsVector *Hreject=NULL;
PdsVector *H2=NULL;
H2=pds_vector_new(200);
Hden=pds_vector_new(7);
Hnum=pds_vector_new(7);
pds_octplot_vector_in_png(H2,"k","Butterworth:|H(k)|^2","modulohiir.m","modulohiir.png");
pds_vector_free(Hnum);
pds_vector_free(Hden);
pds_octplot_vector_in_png(H2,"k","Rectangular:|H(k)|^2","modulohfir1.m","modulohfir1.png");
pds_vector_free(H);
pds_octplot_vector_in_png(H2,"k","Hanning:|H(k)|^2","modulohfir2.m","modulohfir2.png");
pds_vector_free(H);
pds_octplot_vector_in_png(H2,"k","Hamming:|H(k)|^2","modulohfir3.m","modulohfir3.png");
pds_vector_free(H);
pds_octplot_vector_in_png(H2,"k","Hamming|H(k)|^2","modulohfir4.m","modulohfir4.png");
pds_vector_free(H);
pds_octplot_vector_in_png(H2,"k","Rectangular:|H(k)|^2","modulohfir5.m","modulohfir5.png");
pds_vector_free(Hband);
pds_vector_free(H);
pds_octplot_vector_in_png(H2,"k","Rectangular:|H(k)|^2","modulohfir6.m","modulohfir6.png");
pds_vector_free(Hreject);
pds_vector_free(H);
pds_vector_free(H2);
return EXIT_SUCCESS;
}