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 code of cubic spline method

To write a MATLAB code of cubic spline method to find out the value of a function at certain point while we are given a set of data points.

  Random number generator to create a symmetric matrix

Use a random number generator to create a symmetric matrix - without using built-in MATLAB commands, using the Power Method in combination with the Method of Deflation, obtain the eigen values & eigenvectors of the matrix

  Sketch the pm and fm waves produced

Sketch the PM and FM waves produced by the sawtooth wave in figure - Matlab to plot the baseband signal m(t), and PM and FM waves produced by the sawtooth wave m(t) shown in on page 140 of the textbook.

  Import the data into matlab and name the array ace_data

Parameter is related to the energy of the storm, since kinetic energy is proportional to velocity squared. However, it does not take into account the size of the storm, which would be necessary for a true total energy estimate.

  Prepare a program to enter a scalar value of temperature

Create a program that prompts the user to enter a scalar value of temperature. If the temperature is greater than 98.6°F, send a message to the command window telling the user that he or she has a fever.

  Random processes

Theme: Random Processes, Compute and plot separate correlation functions of white noise data and of sinusoidal data. Do this using both the biased and unbiased autocorrelation functions. Are the results what you expected?

  Consider the random process

Consider the random process Z(t) = Acos(pi t), where A is a random variable that follows the standard normal Gaussian.

  Prompts the user to enter grades in a loop

Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range

  Write a matlab script and calculate the normalized scores

Write a MATLAB script that, when given a vector of numbers, nums, creates a vector newNums containing every other element of the original vector, starting with the first element.

  Script that will prompt the user for the reynolds number

Write a script that will prompt the user for the Reynolds number of a flow and will print the region the flow is in.

  Matlab program to calculate the rest of the coefficients

Step One: For the design specifications of your filter, see the excel file for specifications (UDO). You need to demonstrate for the first two iterations( n=0 & n=1), by hand, the calculation of the coefficients. Step Two: Develop a Matlab prog..

  Neglecting drag draw a free body diagram and formulate a

a two inch diameter craft ball is thrown vertically. this initial velocity of the ball is 20 fts.a. neglecting drag

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