Write a matlab script to numerically solve any first order

Assignment Help Computer Engineering
Reference no: EM132206051

Write a MATLAB script file to numerically solve any first order initial value problem using Rulers method. Once code is working use it to solve the mixing tank problem below. Use a step size of 1 minute, and simulate the solution until the tank contains no more salt. Plot both the Euler approximation and the exact solution on the same set of axes.

A tank contains 100 gallons of fresh water. At t=0 minutes, a solution containing 1 lb/gal of brine is pumped into the tank at a rate of 1 gal/min. while the mixture is pumped out at a rate of 2 gal/min. Model the corresponding initial value problem, and then determine the amount of salt in the tank as a function of time until the tank is empty.

Reference no: EM132206051

Questions Cloud

Write a merge program that merges two ordered lists : Write a "merge" program that merges two ordered lists of integers into a new ordered list.
Design for the business and application domains : MN503 - Network requirement analysis and plan - Investigate and develop an architectural internetworking design for the business and application domains
Write a matlab program that rolls a fair 10-sided dice : Write a MATLAB program that rolls a fair 10-sided dice (whose faces go from 0 to 10) for some given number of times.
Prompt the user for an integer between 10 and 100 : Write a MATLAB script (write using MATLAB) that prompts the user for an integer between 10 and 100 by displaying.
Write a matlab script to numerically solve any first order : Write a MATLAB script file to numerically solve any first order initial value problem using Rulers method.
Accept a two-dimensional array of integers as a parameter : Write a method called is Magic Square that accepts a two-dimensional array of integers as a parameter and returns true if it is a magic square.
Disadvantages of adding indexes to a database tables : What are the advantages and disadvantages of adding indexes to a database tables?
Which specific professions would you choose : Given what you have found out regarding the psychological perspectives on aging pertaining to the changes impacting memory, clarity, wisdom, creativity, recall.
Write a matlab function which will take a vector of integers : Write a Matlab function called onlyoddprod.m which will take a vector of integers invest and return the product of only its odd positive entries as the value.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a presentation that is appropriate for your audience

How will you create a presentation that is appropriate for your audience? How do you know how many slides to add for a 10-minute presentation?

  Assume a direct access file consists of sectors

assume a direct access file consists of sectors with 1024 byte capacity. Suppose also that records are 32 bytes long. On which logical sector do the following logical records lie? What is the relative record number in the sector?

  Convert the given floating-point numbers to decimal values

Convert the following IEEE single-precision floating-point numbers to their decimal values. Report the answers to three significant figures.

  Why was the in variable declared outside the try block

Why doesn't the read File method catch any exceptions? Consider the try statement in read File method. Why was the in variable declared outside the try block?

  Write script that behaves in interactive mode

Write script that behaves in both interactive and noninteractive mode. When no argument are supply, it picks up each C program from current directory directory.

  What is the maximum theoretical downstream rate

What is the maximum theoretical downstream rate in Mbps of an ADSL modem?

  Contemporary information technology

Explain a contemporary information technology issue for which our society’s moral guidelines appear to be nonexistent or unclear.

  Compute the value of n after operating the system

The system gets updates 10 times per second, and thusstores in memory the (integer) number of 0.1 s that have elapsed since the system was turned on.

  Write down functions to calculate the mean, variance

If x denotes the mean of a sequence of numbers x1, x2,.....xn, the variance is an average of the squares of the deviations of the numbers from the mean, and the standard deviation is the square root of the variance.

  Prepare a script that would accumulate your user name

The first part of your assignment is to prepare a script that would accumulate your user name, date and time, your computer information and a command running into a log that would be mailed to your instructor.

  Describe how the developer and you can make this tool easy

Explain the project's goals and indicate why you included the requirements, time frames, and necessary tasks that you did.

  What is the difference between a sequential control

post a 200 to 300-word response to each of the the following question1. what is the difference between a sequential

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