12,881,367 members (27,927 online)
Rate this:
See more:
i have 3 values (28,123,56)
i need a polynomial with these values as coefficient
such that by applying any number as 'x' i should get an 8bit number

if the results of function and the values of 'x' are available (for any 3 values of x) then i must get (28,123,56)

can anyone suggest a matlab function for doing the same
Posted 30-Dec-12 23:31pm

Rate this:

## Solution 1

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
terasajan 31-Dec-12 6:00am

it is not a home work
it is a part of my project
those 3 numbers are obtained from 6 pixels of an image
my problem is when i used a function
28+123*x+56*x^2 i got some value
that value is greater than 255
so i applied mod 255

but i don't know how to obtain (28,123,56) in reverse

and i don't know any other polynomial that is applicable
terasajan 31-Dec-12 6:27am

can anyone suggest matlab code for lagrange interpolation function that could be used here

Top Experts
Last 24hrsThis month
 bling 135 OriginalGriff 126 ppolymorphe 100 Karthik Bangalore 40 Richard MacCutchan 30
 OriginalGriff 3,532 Karthik Bangalore 2,391 CHill60 2,358 Jochen Arndt 1,998 ppolymorphe 1,780