SlideShare a Scribd company logo
1 of 2
function hOut = evolveWave(hIn,g,H,L,t)
% hIn vector of measurements at t=0
% g gravitational acceleration
% H water depth
% t time at which the surface is evaluated.
end
g=9.81;
H=.5;
L=5;
t=10;
[X,hIn]=profile(L);
hOut = evolveWave(hIn,g,H,L,t);
It is often very interesting how ideas evolve in Math. Fourier used the technique that now bears
his name to study the heat equation. As it happens, the same technique is also very useful when
studying wave phenomena, which are mathematically described by a very different type of
equation (more on that towards the end of the semester). For now, suffice to say that the theory
tells us that in a given medium which supports waves (say, the surface of a body of water), a
generic wave can be seen as a sum of simple oscillating functions, which propagate in a simple
way. Consider waves on the surface of long and narrow circular channel. The surface elevation
can be written as h ( x , t ) = n = N /2 N /2 1 A n e i ( k n x ( k n ) t ) . Here k n = 2 n / L is the
wavenumber with L the length of the channel (remember, the channel is circular, so the domain
is periodic), and ( k n ) the frequency at which a wave with wavenumber k n oscillates, x is the
position along channel (measured from an arbitrary point) and t is time. For water waves we
have ( k n ) = g k n tanh ( k n H ) . Here g is the gravitational acceleration and H the depth of the
channel. Of course, we interested in the real part of that expression, but by now you should not
be afraid to handle complex values. The (complex) coefficients A n are calculate from
measurements of the surface at t = 0 . Then the equation above can be used to determine the
shape of the surface at any later time. Write Figure 1. Example of Noise and clean signal a
Matlab function hOut = evolveWave ( hIn , g , H , t ) that takes a vector hIn of measurements of
surface elevation at time t = 0 and return a vector h0ut containing the surface elevation at an
arbitrary later time t. H and g are the depth of the channel and the acceleration of gravity. The
input vector contains a great number of points, so you must use fast algorithms. Assume that the
size of hIn is even. Submit your function via Matlab Grader. Use your function to plot hOut vs.
X when X and h In are given by [ X , hIn ] = profile () and t = 10 , g = 9.81 , H = 0.5 , L = 5 .
function hOut - evolveWave(hIn-g-H-L-t) - hIn vector of measurements a.docx

More Related Content

Similar to function hOut - evolveWave(hIn-g-H-L-t) - hIn vector of measurements a.docx

8 3 modeling periodic behavior
8 3 modeling periodic behavior8 3 modeling periodic behavior
8 3 modeling periodic behavior
hisema01
 
Fibonacci_Hubble
Fibonacci_HubbleFibonacci_Hubble
Fibonacci_Hubble
Marc King
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
ZBTHS
 

Similar to function hOut - evolveWave(hIn-g-H-L-t) - hIn vector of measurements a.docx (20)

Algebra 2 unit 9.4.9.5
Algebra 2 unit 9.4.9.5Algebra 2 unit 9.4.9.5
Algebra 2 unit 9.4.9.5
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
8 3 modeling periodic behavior
8 3 modeling periodic behavior8 3 modeling periodic behavior
8 3 modeling periodic behavior
 
03_AJMS_366_22.pdf
03_AJMS_366_22.pdf03_AJMS_366_22.pdf
03_AJMS_366_22.pdf
 
Fibonacci_Hubble
Fibonacci_HubbleFibonacci_Hubble
Fibonacci_Hubble
 
Transitions and Trajectories in Temporal Networks
Transitions and Trajectories in Temporal NetworksTransitions and Trajectories in Temporal Networks
Transitions and Trajectories in Temporal Networks
 
IB Mathematics Extended Essay Decoding Dogs Barks With Fourier Analysis - G...
IB Mathematics Extended Essay  Decoding Dogs  Barks With Fourier Analysis - G...IB Mathematics Extended Essay  Decoding Dogs  Barks With Fourier Analysis - G...
IB Mathematics Extended Essay Decoding Dogs Barks With Fourier Analysis - G...
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Laplace
LaplaceLaplace
Laplace
 
Chapter 1(3)DIMENSIONAL ANALYSIS
Chapter 1(3)DIMENSIONAL ANALYSISChapter 1(3)DIMENSIONAL ANALYSIS
Chapter 1(3)DIMENSIONAL ANALYSIS
 
321 notes
321 notes321 notes
321 notes
 
The wave equation
The wave equationThe wave equation
The wave equation
 
Maxwell-Boltzmann particle throw
Maxwell-Boltzmann particle throwMaxwell-Boltzmann particle throw
Maxwell-Boltzmann particle throw
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Trigonometric functions
Trigonometric functionsTrigonometric functions
Trigonometric functions
 
Fluid Mechanics Exercises
Fluid Mechanics ExercisesFluid Mechanics Exercises
Fluid Mechanics Exercises
 
Analyzing position time plots
Analyzing position time plotsAnalyzing position time plots
Analyzing position time plots
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
pRO
pROpRO
pRO
 

More from SUKHI5

Gale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docx
Gale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docxGale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docx
Gale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docx
SUKHI5
 

More from SUKHI5 (20)

Ghocse the correct answer below- A- No- because the probabafy of burvi.docx
Ghocse the correct answer below- A- No- because the probabafy of burvi.docxGhocse the correct answer below- A- No- because the probabafy of burvi.docx
Ghocse the correct answer below- A- No- because the probabafy of burvi.docx
 
Given Data- MAGLIOCHETTI MOVING CORP- Statement of Earni.docx
Given Data-               MAGLIOCHETTI MOVING CORP- Statement of Earni.docxGiven Data-               MAGLIOCHETTI MOVING CORP- Statement of Earni.docx
Given Data- MAGLIOCHETTI MOVING CORP- Statement of Earni.docx
 
From this table- which mineral level had a significance on which varia.docx
From this table- which mineral level had a significance on which varia.docxFrom this table- which mineral level had a significance on which varia.docx
From this table- which mineral level had a significance on which varia.docx
 
Given a ListItem class- complete main() using the built-in list type t.docx
Given a ListItem class- complete main() using the built-in list type t.docxGiven a ListItem class- complete main() using the built-in list type t.docx
Given a ListItem class- complete main() using the built-in list type t.docx
 
Given a -discrete object- O- the notationO means what- Choose all the.docx
Given a -discrete object- O- the notationO means what- Choose all the.docxGiven a -discrete object- O- the notationO means what- Choose all the.docx
Given a -discrete object- O- the notationO means what- Choose all the.docx
 
Give five examples of unsustainable living or actions from your own ev.docx
Give five examples of unsustainable living or actions from your own ev.docxGive five examples of unsustainable living or actions from your own ev.docx
Give five examples of unsustainable living or actions from your own ev.docx
 
Give an inductive definition of the function rev which takes a list an.docx
Give an inductive definition of the function rev which takes a list an.docxGive an inductive definition of the function rev which takes a list an.docx
Give an inductive definition of the function rev which takes a list an.docx
 
Give feedback19 lines (16 sloc) 450 Bytes.docx
Give feedback19 lines (16 sloc) 450 Bytes.docxGive feedback19 lines (16 sloc) 450 Bytes.docx
Give feedback19 lines (16 sloc) 450 Bytes.docx
 
Give a big-Oh characterization- in terms of n- of the running time of.docx
Give a big-Oh characterization- in terms of n- of the running time of.docxGive a big-Oh characterization- in terms of n- of the running time of.docx
Give a big-Oh characterization- in terms of n- of the running time of.docx
 
Give at least 2 reasons why an entire population of microbes does not.docx
Give at least 2 reasons why an entire population of microbes does not.docxGive at least 2 reasons why an entire population of microbes does not.docx
Give at least 2 reasons why an entire population of microbes does not.docx
 
Giovani Photography bills $650 to Diane Fenning for photography servic.docx
Giovani Photography bills $650 to Diane Fenning for photography servic.docxGiovani Photography bills $650 to Diane Fenning for photography servic.docx
Giovani Photography bills $650 to Diane Fenning for photography servic.docx
 
Germ Theory was a framework that--- All of these argued that disease w.docx
Germ Theory was a framework that--- All of these argued that disease w.docxGerm Theory was a framework that--- All of these argued that disease w.docx
Germ Theory was a framework that--- All of these argued that disease w.docx
 
General Knowledge- In 1927 The Jazz Singer- starring Al Jolson- was hi.docx
General Knowledge- In 1927 The Jazz Singer- starring Al Jolson- was hi.docxGeneral Knowledge- In 1927 The Jazz Singer- starring Al Jolson- was hi.docx
General Knowledge- In 1927 The Jazz Singer- starring Al Jolson- was hi.docx
 
Gereldo recently won a lottery and chose to receive $70-000 todsy inst.docx
Gereldo recently won a lottery and chose to receive $70-000 todsy inst.docxGereldo recently won a lottery and chose to receive $70-000 todsy inst.docx
Gereldo recently won a lottery and chose to receive $70-000 todsy inst.docx
 
genomes are usually circular loops of double-stranded deoxyribonucleic.docx
genomes are usually circular loops of double-stranded deoxyribonucleic.docxgenomes are usually circular loops of double-stranded deoxyribonucleic.docx
genomes are usually circular loops of double-stranded deoxyribonucleic.docx
 
Gastrointestinal Disorders- Teaching about Increasing Fiber Intake- pl.docx
Gastrointestinal Disorders- Teaching about Increasing Fiber Intake- pl.docxGastrointestinal Disorders- Teaching about Increasing Fiber Intake- pl.docx
Gastrointestinal Disorders- Teaching about Increasing Fiber Intake- pl.docx
 
Geert Hofstede surveyed more than 116-000 IBM employees in 40 countrie.docx
Geert Hofstede surveyed more than 116-000 IBM employees in 40 countrie.docxGeert Hofstede surveyed more than 116-000 IBM employees in 40 countrie.docx
Geert Hofstede surveyed more than 116-000 IBM employees in 40 countrie.docx
 
Gale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docx
Gale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docxGale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docx
Gale- Mctean- and Lux are partners of Burgers and Brew Company with ca.docx
 
Future valuesFor the case shown in the following table- calculate the.docx
Future valuesFor the case shown in the following table- calculate the.docxFuture valuesFor the case shown in the following table- calculate the.docx
Future valuesFor the case shown in the following table- calculate the.docx
 
Function Name- isOneCapital Input- 1- (char) A letter 2- (char) A lett.docx
Function Name- isOneCapital Input- 1- (char) A letter 2- (char) A lett.docxFunction Name- isOneCapital Input- 1- (char) A letter 2- (char) A lett.docx
Function Name- isOneCapital Input- 1- (char) A letter 2- (char) A lett.docx
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

function hOut - evolveWave(hIn-g-H-L-t) - hIn vector of measurements a.docx

  • 1. function hOut = evolveWave(hIn,g,H,L,t) % hIn vector of measurements at t=0 % g gravitational acceleration % H water depth % t time at which the surface is evaluated. end g=9.81; H=.5; L=5; t=10; [X,hIn]=profile(L); hOut = evolveWave(hIn,g,H,L,t); It is often very interesting how ideas evolve in Math. Fourier used the technique that now bears his name to study the heat equation. As it happens, the same technique is also very useful when studying wave phenomena, which are mathematically described by a very different type of equation (more on that towards the end of the semester). For now, suffice to say that the theory tells us that in a given medium which supports waves (say, the surface of a body of water), a generic wave can be seen as a sum of simple oscillating functions, which propagate in a simple way. Consider waves on the surface of long and narrow circular channel. The surface elevation can be written as h ( x , t ) = n = N /2 N /2 1 A n e i ( k n x ( k n ) t ) . Here k n = 2 n / L is the wavenumber with L the length of the channel (remember, the channel is circular, so the domain is periodic), and ( k n ) the frequency at which a wave with wavenumber k n oscillates, x is the position along channel (measured from an arbitrary point) and t is time. For water waves we have ( k n ) = g k n tanh ( k n H ) . Here g is the gravitational acceleration and H the depth of the channel. Of course, we interested in the real part of that expression, but by now you should not be afraid to handle complex values. The (complex) coefficients A n are calculate from measurements of the surface at t = 0 . Then the equation above can be used to determine the shape of the surface at any later time. Write Figure 1. Example of Noise and clean signal a Matlab function hOut = evolveWave ( hIn , g , H , t ) that takes a vector hIn of measurements of surface elevation at time t = 0 and return a vector h0ut containing the surface elevation at an arbitrary later time t. H and g are the depth of the channel and the acceleration of gravity. The input vector contains a great number of points, so you must use fast algorithms. Assume that the size of hIn is even. Submit your function via Matlab Grader. Use your function to plot hOut vs. X when X and h In are given by [ X , hIn ] = profile () and t = 10 , g = 9.81 , H = 0.5 , L = 5 .