#include <origin.h>
#include <math.h>
void logplot()
{
int i;
// define two Dataset variable and map them to the 1st and 2nd columns of the worksheet
Dataset dsCol1("data1",0);
Dataset dsCol2("data1",1);
dsCol1.SetSize(251);
dsCol2.SetSize(251);
for(i=0;i<251;i++){
if (dsCol2[i]<0){
dsCol2[i]=log10(-dsCol2[i]*10000)
}
else dsCol2[i]=log10(dsCol2[i]*10000);
}
}
No comments:
Post a Comment