How does matlab 'interp' work?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
How does matlab 'interp' work?

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
Dhawan
Guest





Posted: Wed Dec 07, 2005 11:56 pm    Post subject: How does matlab 'interp' work? Reply with quote

Hi

I have data x= [-970.84 -964.98 -959.11 -953.25 -947.38
-941.52.......................]

I want to interpolate my data so that i can get values:
[ -970.6 -964.74 -958.87 -953.01 -947.14 -941.28 -935.41.....]

If I use y = interp(x,50,2,0.1), I get a vector 50 times longer and i
have all the desired points in it. I took 50 by experimenting. Is there
any method by which R ie 50 can be determined? And how do i know what
values to pick from vector y?

Thanks
Back to top
Fred Marshall
Guest





Posted: Thu Dec 08, 2005 9:16 am    Post subject: Re: How does matlab 'interp' work? Reply with quote

"Dhawan" <anshu.dhawan@gmail.com> wrote in message
news:1133978193.696153.269050@g49g2000cwa.googlegroups.com...
Quote:
Hi

I have data x= [-970.84 -964.98 -959.11 -953.25 -947.38
-941.52.......................]

I want to interpolate my data so that i can get values:
[ -970.6 -964.74 -958.87 -953.01 -947.14 -941.28 -935.41.....]

If I use y = interp(x,50,2,0.1), I get a vector 50 times longer and i
have all the desired points in it. I took 50 by experimenting. Is there
any method by which R ie 50 can be determined? And how do i know what
values to pick from vector y?

Your statement of the problem makes no sense to me.

You have a vector [ a b c d e f .... ] with ...... undefined.

You want to operate on this vector to get a new vector [ r s t u v w ..... ]
again with .... undefined. And, you define the operation as
"interpolation".
But interpolation will add points which aren't shown.
So, I don't get it.

Fred
Back to top
Dhawan
Guest





Posted: Thu Dec 08, 2005 5:16 pm    Post subject: Re: How does matlab 'interp' work? Reply with quote

Hi

Yeah, interpolation will add points. Out of all points , I want to
select the points shown in 2nd matrix. And both arrays have 200 points.
Instead of writing all the points, I typed .......I hope it makes sense
now. I didnt get what is the fundamental theory behind interp function
in matlab?

Thanks
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB