Write a matlab script that draws the function

Assignment Help MATLAB Programming
Reference no: EM131021830

The Analytical Solution to the One-Dimensional Advection equation can be written as q(x,t) = sin(k(x-Ut)) where k is the wavenumber.

Wavelength:Lx = 3000km

U = 10m/s

Advection equation : dq/dt = del(q)/del(t) + U*del(q)/del(x)
We suppose the wave is represented on a 32Δx grid
Courant-Friedrichs-Lewy (CFL) C=1

1- Write a Matlab script that draws the function q(x,t) at t = 0.

2- Solve numerically the advection equation using the central difference method. Choose appropriate boundary conditions so that the wave is entering on the left side (west side) and is coming out on the right side (east side). Show on the same graph both the analytical solution and numerical solution at the first timestep (N=1).

Reference no: EM131021830

Questions Cloud

What is the level of output in country a : The aggregate production function in country A is given by Y = √(K · L), where (Y) is real GDPor output, (L) is labor, and (K) is capital. In Country A the capital stock is constant at K = 81. Given this information and holding everything else cons..
Analyse the ethical dilemma using acs code of conduct : Analyse the ethical dilemma using the Australian Computer Society Code of Professional Conduct - Use the same ethical dilemma or ethically questionable situation that you identified in your first assignment.
What is the price of a nine-month call option : What is the price of a 9-month call option AND a 9-month put option BOTH with a strike price of $45 given the Black-Scholes Option Pricing Model and the following information? Stock Price = $48 Strike Price = $45 Time to expiration = .75 Risk-free ra..
How do you think employee wellness programs will evolve : Analyze implications for the health care workforce and strategic human resources management in health care organizations, citing at least two resources to support your analysis.
Write a matlab script that draws the function : Solve numerically the advection equation using the central difference method. Choose appropriate boundary conditions so that the wave is entering on the left side (west side) and is coming out on the right side (east side). Show on the same graph ..
What interest rate did you charge for financing the sale : You recently sold an antique car you owned and valued greatly. However, you needed money and agreed to sell the car at a price of $58,000, to be paid in monthly payments of $1,500 each for 48 months. What interest rate did you charge for financing th..
Describe four measures of forecasting errors : Describe four measures of forecasting errors and how they may occur when analyzing data.
How does the decision in this case impact the validity : Cite and include on the reference page at least 3 peer-reviewed sources. Use sources from this course (text, readings), Library, or appropriate articles from the internet.
What is the encryption algorithm : What is the encryption algorithm? How secure is it?

Reviews

Write a Review

 

MATLAB Programming Questions & Answers

  T prints out, on a clear screen, a table of temperatures

Create a MATLAB program (utilizing a temp-conversion function) that prints out, on a clear screen, a table of temperatures.

  Evaluate the exponential when x is negative

Test your program for x = 10, 2, -2, and -10. From the plots, explain why this is not a good way to evaluate 9 when x

  Prepare a program in matlab

Prepare a program in Matlab to add two numbers from two arrays using try catch construct. Initialize two arrays of different size, and then prompt the user to input indexes for each of the two arrays

  How spectrograms can be used in non-stationary signals

Use calculations and/or your conceptual understanding of spectra to predict what you'd expect the spectrum of this signal to look like. Confirm this hypothesis by again using fft() in MATLAB to plot the actual spectrum. If MATLAB differs from your..

  Does technology influence gambling

Can you conclude that online gambling is more prevalent among individuals who are under the age of 30 at a level of significance of 0.05?

  Find the mean value and standard deviation of total gravity

plot the total gravity effect of the 5 cylinders by summing their effects at each observation point on the profile.   What is the mean value and standard deviation of the total gravity effect

  Develop your own matlab function for the fixed-point method

Develop your own Matlab function for the Fixed-point method. Use the approximate relative error as your stopping criterion. The first line of your function should be function [root,froot,ea,iter] = fixedpoint(func,xr,es,maxit)

  Give the gradient operator in paraboloidal coordinates

Given that the le data.txt contains only real numbers seperated by white space, write down a sequence of maple commands that will read the data into a maple list and then plot a histogram of the elements in the list.

  Hi i attached the instructions would you guys do it by 50

i attached the instructions. ltbrgt ltbrgtwould you guys do it by 50 dollars ? ltbrgt ltbrgtit is due this friday

  Write a matlab script m-file to play a guessing game the

write a matlab script m-file to play a guessing game. the user will try to guess a number between 1 and 100. your

  Construct the shear force and bending moment diagrams

Write the algorithm and draw the flowchart for each problem

  Display the miles per pound of fuel m against the air speed

fuel consumption of an aircraft in short flight is given by the functionm -0.000653 a2 0.127 a - 5.01where m is the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd