Lagrange interpolation | Programming Numerical Methods in MATLAB

preview_player
Показать описание
The theory and #MATLAB #programming steps of Lagrange's interpolation method are explained with examples in this #tutorial.

Credits:
Рекомендации по теме
Комментарии
Автор

Hey, just wanna let you know that I am thankful I found this video. My prof does not even taught us how to code and he expects us on exam that we code things like this on octave. You are really helpful even years have already passed. Thank you!!

equiknox_
Автор

Thank you so much! You helped me solve a problem of my numerical methods class. Instead of evaluating a single "xp" value, we needed to plot the resulting polynomial as a function, so I had to vectorize the calculation. I generated a vector xp = linspace( min(x), max(x), 200) and initialized the sum and product variables as vectors with dimension 1x200 . I then used exactly your same algorithm but used point-wise product (.*) and division (./) where needed. I solved the thing in few lines thanks to your code!

vma
Автор

I just getting into all of this Matlab thing and this video explain it crystal clear, Thank you so much!

teerachote
Автор

Thank you very much, Mr. It helped me a lot. Greetings from Chile

bastianrojo
Автор

Awesome video! Thank you! You're very helpful and your voice is very calming and soothing. Thank you!

AJ-etvf
Автор

wish i found this sooner. i bought your materials keep up the good work

tayneilson
Автор

Hi! Thank you for the video, I have one more question, how to generate the plot for that equation?

alobyerl
Автор

Thank you very much sir! It helped me a lot

bcerme
Автор

Thank u so much ! This helped me A LOT :D

shaimashakib
Автор

Please, if you are reading this, tell me - why is the " pr " (product variable) equal to one and not any other number?!

ikxmcii
Автор

Hey! I have a question: why does pr start at 1? I mean, I know why, but in the code I don't understand why is it there.

carlospuente
Автор

Excellent work but I have a doubt, if I wanted to know the coefficients of the lagrange polynomial, what should I modify the code that you developed?
Thank you

agustinacevedo
Автор

Hello, i hope you reply to me. Can we write this program without using *if*? and how to replace *n=length(x)* with *size*

smailkhal
Автор

Great video, thank you very much. I'm trying to figure out how to plot the respective fit... Any thoughts about that?

mpixlas
Автор

Hello thank you for your tutorial. Could you tell me how to plot it ?

sylwiawrzesien
Автор

I have repeated the same code as that of you but my answer doesn't matches. So could you please help me out?

MuhammadBilal-buwc
Автор

Thank you so much for this great explanation.
Can you help me with how to obtain the exact polynomial of degree n fitting the data points we have? What should I add to the code you have written in the video? Thanks.

mervedenizyldz
Автор

mister, por que no me arroja resultado, espero su respuesta pa ya, gracias por la atención prestada

alexanderotalvaro