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

  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

  What is the minimum snr for a sinusoid in white noise

What is the minimum SNR for a sinusoid in white noise to be detectable using frequency domain techniques (Periodogram and Blackman-Tukey)? Do the results depend on frequency? Compute and plot separate correlation functions of white noise data and of ..

  Write a simple program that stores the high temperatures

A meteorological company wants you to write a simple program that stores the high temperatures and low temperates for each of the months of the year. After consulting with trusted programming partners, you come up with a great idea

  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

  Find the roots using matlab built-in functions roots & fzero

the following equation, what is the modified equation for a fixed-point iteration method. The roots of the function are x = -2.2020235, -0.4088152, and 1.11083871, how would you determine whether or not the method will converge on a root? If the tech..

  Construct a matlab simulation of pulse sampling

Construct a Matlab simulation of pulse sampling and sample & hold for m(t) = cos(2t) andfs = 10.

  Write matlab scripts

Write MATLAB scripts for to accept two numbers from the user; Display all prime numbers between these two numbers.

  Will compute the value of each piece of clothing.

write a script in MATLAB that will compute the value of each piece of clothing.

  Write a script that will loop through values

Write a script that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.

  Integration and random numbers

assemble 1,000 bolt + hole combinations. The bolts have a mean diameter of 1.000 cm, normally distributed with standard deviation of 0.010 cm. The holes have a mean diameter of 1.030 cm, normally distributed with standard deviation of 0.015 cm.

  Construct full-spectrum least-squares fit to tissue spectrum

Construct a full-spectrum least-squares fit to the tissue spectrum. Using these fitting coeffcients for oxy and deoxy hemoglobin, calculate the O2 saturation percentage.

  Compute the term structure of interest rates

Plot the term structure of interest rates - remember that the y(t, T) = -1/T-t log P(t, T). Describe the term structure and Compute the term structure of interest rates with the value of ro= 0.17. What is the difference between the two term structur..

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