## 189 Reputation

18 years, 148 days

## The command...

The command ArrayTools[IsZero] seems to work fine. Thank you for the suggestions

## I was thinking in doing...

I was thinking in doing something similar by applying to each of the pixels the correction algorithm that for my case is a fourth degree polynomial. I think I can do that part once the polynimial is known, but I don't know how to start for extracting the polynomial from the distorted image.

Thank you for the help

## Thanks a lot Acer. It works...

Thanks a lot Acer. It works now

## Acer, I've done the changes...

Acer,

I've done the changes you suggested by writing the x and y arrays as x:=vector([a...]) and same for y but now I get the "sizes of independent and dependent data do not match" error. I checked the dimension of all the data arrays and all have 48 data points.

Here is the data and the fit statement

Cd := [.686, .693, .702, .714, .728, .745, .764, .785, .594, .597, .601, .607, .614, .621, .63, .641, .545, .546, .549, .553, .557, .562, .566, .574, .514, .515, .518, .52, .523, .526, .53, .535, .494, .495, .496, .498, .5, .503, .504, .505, .479, .48, .481, .482, .484, .485, .488, .49];

S := vector(10^3*[.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, .5, 1, 1.5, 2, 2.5, 3, 3.5, 4, .5, 1, 1.5, 2, 2.5, 3, 3.5, 4, .5, 1, 1.5, 2, 2.5, 3, 3.5, 4, .5, 1, 1.5, 2, 2.5, 3, 3.5, 4, .5, 1, 1.5, 2, 2.5, 3, 3.5, 4]);

V := vector([40, 40, 40, 40, 40, 40, 40, 40, 60, 60, 60, 60, 60, 60, 60, 60, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 120, 120, 120, 120, 120, 120, 120, 120, 140, 140, 140, 140, 140, 140, 140, 140])

W := Fit(a+b*S+c*V+d*S^2+e*S*V+f*V^2, Matrix([S, V]), Cd, [S, V]);

## Acer, I'll try what you...

Acer,

I'll try what you suggest and will advice later.

Thanks a bunch again

## Thanks Acer for the fast...

Thanks Acer for the fast reply. The data assignment is as follows:

x and y are 1D arrays of 48 data points. The array representing the measured variable z is also a 1D 48 points array.

Does this make sense to you? Thanks

## Thanks Acer for the fast...

Thanks Acer for the fast reply. The data assignment is as follows:

x and y are 1D arrays of 48 data points. The array representing the measured variable z is also a 1D 48 points array.

Does this make sense to you? Thanks

## It would appear that the SP3...

It would appear that the SP3 upgrade altered the license file and required the reintalling of Maple (I upgraded to Maple 12. Something to think about when upgrading Xp to SP3

## Thank you for the...

Thank you for the suggestion. Is a company wide license so we should have the activation code. I was just curious about other easier steps to do to get Maple quicly up and running under SP3

## Robert, I found what the...

Robert,

I found what the problem was when working in document mode. Actually is was a typo error in some the variable definitions. After fixing the errors the code works fine.

Thank you for all your help and sorry for bothering

## Robert, Sorry for the typos...

Robert,

Sorry for the typos in the message. The code doesn't have them and still don't work in Document mode but works in Worksheet mode. I don't know what may be wrong for Document mode not to work.

Thank you

## Thank you. For some reason I...

Thank you. For some reason I had to select "insert \ 2-D math" for your suggestions to work. But now I got the message "error, final value in for loop must be numeric or character"

 Page 1 of 1
﻿