#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 *X=NULL;
PdsVector *Y=NULL;
FILE *fd=NULL;
char DATAFILE[]="datos.txt";
char OCTAVEFILE[]="plotinoctave.m";
N=64;
Y=pds_vector_new(8*N);
if(Y==NULL) return EXIT_FAILURE;
X=pds_vector_new(N);
if(X==NULL) return EXIT_FAILURE;
for(i=0;i<N;i++) X->V[i]=i;
if(WAVE==NULL) return EXIT_FAILURE;
fd=fopen(DATAFILE,"w");
if(fd==NULL) return EXIT_FAILURE;
pds_vector_fprintf(Y,fd);
fclose(fd);
pds_octave_plot_lin(OCTAVEFILE,DATAFILE);
pds_vector_free(X);
pds_vector_free(Y);
return EXIT_SUCCESS;
}