Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Matlab
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 31-Dec-12 0:31am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

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!
  Permalink  
Comments
terasajan at 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 at 31-Dec-12 6:27am
   
can anyone suggest matlab code for lagrange interpolation function that could be used here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 274
1 Shweta N Mishra 216
2 PIEBALDconsult 210
3 Sergey Alexandrovich Kryukov 185
4 BillWoodruff 174
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100