- #1
Jason Chiu
- 1
- 0
I have a table of data points to be subtracted by another table of data points. I have succeed in subtracting the y values of each data point successfully, but it is the x values of each data point in that I have trouble.
m =10;
SubDataList=Table[{DataList[[i,All,2]]-BGData[[All,2]]},{i,1,m}];
Do[{SubDataPlot=ListPlot[SubDataList[]];},{i,1,m}]This is the code that I am having trouble with. However, my plot will get y values correct, but my x-axis is automatically set to 0 to 1400 in steps of 200. However, my data points shows that my x-axis should be from 0 to 0.07 in steps of 0.01.
Both "DataList" and "BGData" are table of its own and the specifications that I have done for each just extracts the y-values in each table and subtracts them.
m =10;
SubDataList=Table[{DataList[[i,All,2]]-BGData[[All,2]]},{i,1,m}];
Do[{SubDataPlot=ListPlot[SubDataList[]];},{i,1,m}]This is the code that I am having trouble with. However, my plot will get y values correct, but my x-axis is automatically set to 0 to 1400 in steps of 200. However, my data points shows that my x-axis should be from 0 to 0.07 in steps of 0.01.
Both "DataList" and "BGData" are table of its own and the specifications that I have done for each just extracts the y-values in each table and subtracts them.