SlideShare a Scribd company logo
1 of 1
Download to read offline
Linear interpolation in Matlab.
Linear interpolation can be done in MATLAB using the interp1 function (that’s “interp-one”).
Its default mode is linear interpolation, which is equivalent to using the ’*linear’ option, but
interp1 can also do other types of polynomial interpolation. Here is an example on a 1-D signal:
n1 = 0:6;
xr1 = (-2).ˆn1;
tti = 0:0.1:6; %-- locations between the n1 indices
xr1linear = interp1(n1,xr1,tti); %-- function is INTERP-ONE
stem(tti,xr1linear)
For the example above, what is the interpolation factor when converting xr1 to xr1linear?
Solution
Ans)
Length of original signal xr1=7 (0:6 )
Length of interpolated signal xr1linear=1+(6/0.1)=61 (0:0.1:6)
Interpolation factor =length(xr1linear)/length(xr1)=61/7=8.7143
Interpolation factor =8.7143

More Related Content

More from arihantelehyb

Who is considered the author of The Way of Life, which is Daoisms .pdf
Who is considered the author of The Way of Life, which is Daoisms .pdfWho is considered the author of The Way of Life, which is Daoisms .pdf
Who is considered the author of The Way of Life, which is Daoisms .pdfarihantelehyb
 
Which of the following is not a function of proteinsa.         .pdf
Which of the following is not a function of proteinsa.         .pdfWhich of the following is not a function of proteinsa.         .pdf
Which of the following is not a function of proteinsa.         .pdfarihantelehyb
 
what is the marketSolutionAccording to Britannica Market, a .pdf
what is the marketSolutionAccording to Britannica Market, a .pdfwhat is the marketSolutionAccording to Britannica Market, a .pdf
what is the marketSolutionAccording to Britannica Market, a .pdfarihantelehyb
 
What happens when two shock waves collide What happens specifically.pdf
What happens when two shock waves collide What happens specifically.pdfWhat happens when two shock waves collide What happens specifically.pdf
What happens when two shock waves collide What happens specifically.pdfarihantelehyb
 
What is input A. Any data or information that is processed and pres.pdf
What is input  A. Any data or information that is processed and pres.pdfWhat is input  A. Any data or information that is processed and pres.pdf
What is input A. Any data or information that is processed and pres.pdfarihantelehyb
 
What are the main components of the chemiosmotic mechanism in mitoch.pdf
What are the main components of the chemiosmotic mechanism in mitoch.pdfWhat are the main components of the chemiosmotic mechanism in mitoch.pdf
What are the main components of the chemiosmotic mechanism in mitoch.pdfarihantelehyb
 
Description of programYou are to write a program name InfixToPost.pdf
Description of programYou are to write a program name InfixToPost.pdfDescription of programYou are to write a program name InfixToPost.pdf
Description of programYou are to write a program name InfixToPost.pdfarihantelehyb
 
Customers arrive at bakery at an average of 10 customers per hour. W.pdf
Customers arrive at bakery at an average of 10 customers per hour. W.pdfCustomers arrive at bakery at an average of 10 customers per hour. W.pdf
Customers arrive at bakery at an average of 10 customers per hour. W.pdfarihantelehyb
 
Two different strains of a mutant phage infect a single bacterium. O.pdf
Two different strains of a mutant phage infect a single bacterium. O.pdfTwo different strains of a mutant phage infect a single bacterium. O.pdf
Two different strains of a mutant phage infect a single bacterium. O.pdfarihantelehyb
 
Consider this you have two cell lines, a macrophage cell line and a.pdf
Consider this you have two cell lines, a macrophage cell line and a.pdfConsider this you have two cell lines, a macrophage cell line and a.pdf
Consider this you have two cell lines, a macrophage cell line and a.pdfarihantelehyb
 
RNA splicing activities can be regulated in cells by various activat.pdf
RNA splicing activities can be regulated in cells by various activat.pdfRNA splicing activities can be regulated in cells by various activat.pdf
RNA splicing activities can be regulated in cells by various activat.pdfarihantelehyb
 
Required Summarize why revenue is such a critical account in most c.pdf
Required Summarize why revenue is such a critical account in most c.pdfRequired Summarize why revenue is such a critical account in most c.pdf
Required Summarize why revenue is such a critical account in most c.pdfarihantelehyb
 
quizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdf
quizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdfquizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdf
quizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdfarihantelehyb
 
Provide a diagram and description of the flow table entries that can.pdf
Provide a diagram and description of the flow table entries that can.pdfProvide a diagram and description of the flow table entries that can.pdf
Provide a diagram and description of the flow table entries that can.pdfarihantelehyb
 
please help me with this question tooSolutionlight is el.pdf
please help me with this question tooSolutionlight is el.pdfplease help me with this question tooSolutionlight is el.pdf
please help me with this question tooSolutionlight is el.pdfarihantelehyb
 
Need help please writting this essay.The number one reason for a.pdf
Need help please writting this essay.The number one reason for a.pdfNeed help please writting this essay.The number one reason for a.pdf
Need help please writting this essay.The number one reason for a.pdfarihantelehyb
 
My Program below this is supposed to do the following below here but.pdf
My Program below this is supposed to do the following below here but.pdfMy Program below this is supposed to do the following below here but.pdf
My Program below this is supposed to do the following below here but.pdfarihantelehyb
 
INDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdf
INDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdfINDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdf
INDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdfarihantelehyb
 
in the essay this is i believe by albert einstein which paragra.pdf
in the essay this is i believe by albert einstein  which paragra.pdfin the essay this is i believe by albert einstein  which paragra.pdf
in the essay this is i believe by albert einstein which paragra.pdfarihantelehyb
 
In Java write a menu driven program that implements the following li.pdf
In Java write a menu driven program that implements the following li.pdfIn Java write a menu driven program that implements the following li.pdf
In Java write a menu driven program that implements the following li.pdfarihantelehyb
 

More from arihantelehyb (20)

Who is considered the author of The Way of Life, which is Daoisms .pdf
Who is considered the author of The Way of Life, which is Daoisms .pdfWho is considered the author of The Way of Life, which is Daoisms .pdf
Who is considered the author of The Way of Life, which is Daoisms .pdf
 
Which of the following is not a function of proteinsa.         .pdf
Which of the following is not a function of proteinsa.         .pdfWhich of the following is not a function of proteinsa.         .pdf
Which of the following is not a function of proteinsa.         .pdf
 
what is the marketSolutionAccording to Britannica Market, a .pdf
what is the marketSolutionAccording to Britannica Market, a .pdfwhat is the marketSolutionAccording to Britannica Market, a .pdf
what is the marketSolutionAccording to Britannica Market, a .pdf
 
What happens when two shock waves collide What happens specifically.pdf
What happens when two shock waves collide What happens specifically.pdfWhat happens when two shock waves collide What happens specifically.pdf
What happens when two shock waves collide What happens specifically.pdf
 
What is input A. Any data or information that is processed and pres.pdf
What is input  A. Any data or information that is processed and pres.pdfWhat is input  A. Any data or information that is processed and pres.pdf
What is input A. Any data or information that is processed and pres.pdf
 
What are the main components of the chemiosmotic mechanism in mitoch.pdf
What are the main components of the chemiosmotic mechanism in mitoch.pdfWhat are the main components of the chemiosmotic mechanism in mitoch.pdf
What are the main components of the chemiosmotic mechanism in mitoch.pdf
 
Description of programYou are to write a program name InfixToPost.pdf
Description of programYou are to write a program name InfixToPost.pdfDescription of programYou are to write a program name InfixToPost.pdf
Description of programYou are to write a program name InfixToPost.pdf
 
Customers arrive at bakery at an average of 10 customers per hour. W.pdf
Customers arrive at bakery at an average of 10 customers per hour. W.pdfCustomers arrive at bakery at an average of 10 customers per hour. W.pdf
Customers arrive at bakery at an average of 10 customers per hour. W.pdf
 
Two different strains of a mutant phage infect a single bacterium. O.pdf
Two different strains of a mutant phage infect a single bacterium. O.pdfTwo different strains of a mutant phage infect a single bacterium. O.pdf
Two different strains of a mutant phage infect a single bacterium. O.pdf
 
Consider this you have two cell lines, a macrophage cell line and a.pdf
Consider this you have two cell lines, a macrophage cell line and a.pdfConsider this you have two cell lines, a macrophage cell line and a.pdf
Consider this you have two cell lines, a macrophage cell line and a.pdf
 
RNA splicing activities can be regulated in cells by various activat.pdf
RNA splicing activities can be regulated in cells by various activat.pdfRNA splicing activities can be regulated in cells by various activat.pdf
RNA splicing activities can be regulated in cells by various activat.pdf
 
Required Summarize why revenue is such a critical account in most c.pdf
Required Summarize why revenue is such a critical account in most c.pdfRequired Summarize why revenue is such a critical account in most c.pdf
Required Summarize why revenue is such a critical account in most c.pdf
 
quizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdf
quizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdfquizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdf
quizlet com ezto.mheducation.com nline Store Apple Apple Disney Disne.pdf
 
Provide a diagram and description of the flow table entries that can.pdf
Provide a diagram and description of the flow table entries that can.pdfProvide a diagram and description of the flow table entries that can.pdf
Provide a diagram and description of the flow table entries that can.pdf
 
please help me with this question tooSolutionlight is el.pdf
please help me with this question tooSolutionlight is el.pdfplease help me with this question tooSolutionlight is el.pdf
please help me with this question tooSolutionlight is el.pdf
 
Need help please writting this essay.The number one reason for a.pdf
Need help please writting this essay.The number one reason for a.pdfNeed help please writting this essay.The number one reason for a.pdf
Need help please writting this essay.The number one reason for a.pdf
 
My Program below this is supposed to do the following below here but.pdf
My Program below this is supposed to do the following below here but.pdfMy Program below this is supposed to do the following below here but.pdf
My Program below this is supposed to do the following below here but.pdf
 
INDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdf
INDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdfINDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdf
INDIGENOUS LAND DEFENSESEPTEMBER 17, 2017On the 10th anniversary.pdf
 
in the essay this is i believe by albert einstein which paragra.pdf
in the essay this is i believe by albert einstein  which paragra.pdfin the essay this is i believe by albert einstein  which paragra.pdf
in the essay this is i believe by albert einstein which paragra.pdf
 
In Java write a menu driven program that implements the following li.pdf
In Java write a menu driven program that implements the following li.pdfIn Java write a menu driven program that implements the following li.pdf
In Java write a menu driven program that implements the following li.pdf
 

Recently uploaded

Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 

Linear interpolation in Matlab.Linear interpolation can be done in.pdf

  • 1. Linear interpolation in Matlab. Linear interpolation can be done in MATLAB using the interp1 function (that’s “interp-one”). Its default mode is linear interpolation, which is equivalent to using the ’*linear’ option, but interp1 can also do other types of polynomial interpolation. Here is an example on a 1-D signal: n1 = 0:6; xr1 = (-2).ˆn1; tti = 0:0.1:6; %-- locations between the n1 indices xr1linear = interp1(n1,xr1,tti); %-- function is INTERP-ONE stem(tti,xr1linear) For the example above, what is the interpolation factor when converting xr1 to xr1linear? Solution Ans) Length of original signal xr1=7 (0:6 ) Length of interpolated signal xr1linear=1+(6/0.1)=61 (0:0.1:6) Interpolation factor =length(xr1linear)/length(xr1)=61/7=8.7143 Interpolation factor =8.7143