## 34 Reputation

14 years, 270 days

## tried and did not work exactly the same ...

thanks, i tried what you said. and code attached. why when i try to obtained an array with two columns, it did not give me the pattern like you have " Data:=[[specfic values]....]]?"

even with Fit, it gives the same outcome.

does it has anything to do with my input mode?import_data_and_extr.mw

## tried and did not work exactly the same ...

thanks, i tried what you said. and code attached. why when i try to obtained an array with two columns, it did not give me the pattern like you have " Data:=[[specfic values]....]]?"

even with Fit, it gives the same outcome.

does it has anything to do with my input mode?import_data_and_extr.mw

## plot and fit...

plot_and_fit.mw

thanks for your help, it worked after converting to 1-D math. next step i am trying to plot the data and get a nonlinear fit for the data.

I used the following code:

pp := pointplot(X, Y, symbolsize = 25, color = blue);

ans1 := NonlinearFit(a*x^n+b*x+c, X, Y, x);

p1:=plot(asw1,x=0..10):

however, it did not return to me the plot, nor the fitted function.(see attached)plot_and_fit.mw

Don't know what is wrong. sorry i do need instruction for single steps....

## plot and fit...

plot_and_fit.mw

thanks for your help, it worked after converting to 1-D math. next step i am trying to plot the data and get a nonlinear fit for the data.

I used the following code:

pp := pointplot(X, Y, symbolsize = 25, color = blue);

ans1 := NonlinearFit(a*x^n+b*x+c, X, Y, x);

p1:=plot(asw1,x=0..10):

however, it did not return to me the plot, nor the fitted function.(see attached)plot_and_fit.mw

Don't know what is wrong. sorry i do need instruction for single steps....

## enter data...

i only pasted a small portion of data, however, how do i use long columns of x amd y data saved in an excel file? i cannot type, there are hundreds of them. thanks.

## enter data...

i only pasted a small portion of data, however, how do i use long columns of x amd y data saved in an excel file? i cannot type, there are hundreds of them. thanks.

## error file attached...

i hope you could kindly tackle the problem i had.

see title

## why i cannot modify from the above file ...

i was trying to copy new data and replace the data in the bracket in the x vector, but it keeps returning error. what shall i do?

## why i cannot modify from the above file ...

i was trying to copy new data and replace the data in the bracket in the x vector, but it keeps returning error. what shall i do?

## sorry, X Y were out of...

sorry, X Y were out of alignment in the previous thread. X is:

 0.527 1.05 1.58 2.11 2.63 3.16 3.68 4.21 4.74 5.26 5.79 6.32 6.84 7.37 7.89 8.42 8.95 9.47 10

Y is:

 6.43e-06 1.51e-05 2.57e-05 3.74e-05 5.08e-05 6.65e-05 8.55e-05 0.000121 0.000163 0.000221 0.000297 0.000392 0.000509 0.000651 0.00082 0.00107 0.0013 0.00155 0.00183

## sorry, X Y were out of...

sorry, X Y were out of alignment in the previous thread. X is:

 0.527 1.05 1.58 2.11 2.63 3.16 3.68 4.21 4.74 5.26 5.79 6.32 6.84 7.37 7.89 8.42 8.95 9.47 10

Y is:

 6.43e-06 1.51e-05 2.57e-05 3.74e-05 5.08e-05 6.65e-05 8.55e-05 0.000121 0.000163 0.000221 0.000297 0.000392 0.000509 0.000651 0.00082 0.00107 0.0013 0.00155 0.00183

 1 2 Page 2 of 2
﻿