#include <config.h>
#include <stdlib.h>
#include <pds/pdsds.h>
#include <pds/pdsvector.h>
#include "extras.h"
#include <math.h>
int main(int argc, char** argv)
{
PdsVector *Yc=NULL;
PdsVector *Ys=NULL;
FILE *fd=NULL;
char DATAFILE[]="datos.txt";
char OCTAVEFILE[]="plotinoctave.m";
A=1.0;
Teta=M_PI/32.0;
N=256;
Yc=pds_vector_new(N);
if(Yc==NULL) return EXIT_FAILURE;
Ys=pds_vector_new(N);
if(Ys==NULL) return EXIT_FAILURE;
if(WAVE==NULL) return EXIT_FAILURE;
fd=fopen(DATAFILE,"w");
if(fd==NULL) return EXIT_FAILURE;
pds_vector_fprintf(Yc,fd);
pds_vector_fprintf(Ys,fd);
fclose(fd);
pds_octave_plot_2lin(OCTAVEFILE,DATAFILE);
pds_vector_free(Yc);
pds_vector_free(Ys);
return EXIT_SUCCESS;
}