scatterplots and curve fitting

July 01 2009 by mathgeek 72
Maple

0

0


I've been using a combination of Fortran and gnuplots to do my plots. my research required an intensive amount of data plotting. I've been trying to use maple to do scatterplots and curve fitting for my data. here is the code: > K := readdata("/Users/xxx/Work/dt40s5l10.110/ALL/dt40s5l10.110.1.DFIR.AVE", 8) # the file contains 2972 lines and 8 columns of data > unassign('G', 'X'); > seq(assign(G[i], (K[i+1, 5]-K[i, 5])/(K[i+1, 1]-K[i, 1])), i = 1 .. 2970); # to calculate the derivative > seq(assign(X[i], K[i, 1]), i = 1 .. 2970); when I tried to plot X vs G using scatterplots >with (Statistics): > ScatterPlot (X,G); I don't get anything, it's just rewrite the line. What should I do to make this work? my second question if I want to plot or fit a curve over a certain range of X. for example if the Values of X ranges from -60 to 60, can I plot only from 0 to 60 or fit a function in that range only instead the whole thing. thank you in advance

Loading Comments

You must be log into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account