Write a matlab function that will take a set

Assignment Help MATLAB Programming
Reference no: EM132101284

To plot the FFA curve, engineers often use this function Q = b + a/k[ 1 - (- log (1 - P))^k i (1) where P is the exceedence probability, and Q is the volumetric flow rate ( ft^3/ s ) of the river, and a, b, and k are values which depend on the river under question.

For this assignment, you are given three different sets of values of a, b, and k for 3 different rivers.

They are a = [2000, 1000, 4000] b = [30000, 40000, 50000] k = [-0.3, -0.1, -0.4]

Write a Matlab function that will take a set of a, b and k vectors and create a figure of FFA curves (Q vs T) for these rivers using equation (1) and the given parameter values, all on the same graph, with appropriate axis labels.

The function definition (first line of the function) should be function []=FFAplot(a,b,k)

You should use a loop in your function, since the function should be able to handle an unknown number of [a, b, k] values.

Your function should also check that a, b, and k are the same size. The return period should range from 1 year to 100 years.

It will be easiest if you add the legend separately using the legend command, in the command window outside of your function code.

Reference no: EM132101284

Questions Cloud

Maps the province names to the names of province : Given a variable , province_premier, that is associated with a dictionary that maps the province names to the names of province premiers, associate.
Abolition movement in the united states : 1) In your opinion, which individual had the greatest impact on the Abolition Movement in the United States?
What is the minimum number of socks orfkleeg needs : Plutonians have three feet. Suppose the Plutonian Orfkleeg has a box with an infinite number each of red, blue, yellow, green, and white socks.
Jackson administration indian removal policy : In Florida, the Jackson administration's Indian removal policy led to the Second Seminole War.
Write a matlab function that will take a set : You should use a loop in your function, since the function should be able to handle an unknown number of [a, b, k] values.
Declaration of the rights of man and of the citizen : What is the significance of the "Declaration of the Rights of Man and of the Citizen" in history?
Create a test java class called Banking : Write the class Banking that tests the transferTo method of Account class and print the results of accounts before and after transfer
Secession in the declarations of causes : What did the seceding southern states list as their primary reason for secession in the Declarations of Causes and Orders of Secession?
Generate a pseudo-random color bmp image of size : Prompt the user for the output filename with a bmp extension where the image is to be stored (in the directory from which your program is run).

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Brief explanation of measures of predictive accuracy

The assignment makes use of quarterly US inflation data and various predictor variables in the Final_2017_data.xlsx file available on the website. Brief explanation of measures of predictive accuracy. Estimated values of measures of predictive accu..

  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?

  Make a program that will graph the parabolas

Make a program that will graph the parabolas each parabola a different color and put all the parabolas in the same figure or graph

  Perform a simulation of a dc motor control system

Tasks include position control and speed control. Transfer functions of motor, controller, and sensor will be given to you.

  Modify the functions for the bisection and false-position

Modify the functions for the bisection and false-position techniques of finding a root of an equation (see below questions) so that the number of iterations can be determined and displayed. (The count should only be displayed after the loop is com..

  Develop a program that solves the power flow

Develop a program that solves the power flow using the Gauss-Seidel or Newton-Raphson Method

  Need to plot two ellipses with given points

MA2895 INDIVIDUAL MATLAB ASSIGNMENT. You need to plot two ellipses and with given points on one of the ellipses you a draw line segment

  Write the matlab code that takes the square root of nine

Write the MATLAB code for adding the integers 6 and 3, and storing the sum in a variable x. Write the MATLAB code that takes the square root of 9.

  Write the Mat-Lab codes for given figure

Write the Mat-Lab codes for figure 10 and figure 14. For figure 14 the governing equation is equation number (20)

  Which degree do you think best represents the data

Write a Matlab script to try fitting a 1st, 2nd, and 3rd degree polynomial to the dataset described by volume of water vs. volume of ice. Use subplot to draw all three

  Calculate and analyze the probability of error for mpsk

Calculate and analyze the probability of error for MPSK under AWGN - Derive mathematically step-by-step the probability of error of MPSK under AWGN where M=2 and M=4;

  Estimate the area of the tea spill

The surface area of a tea spill is estimated by measuring the width (in cm) of the spill at equally spaced intervals of 1.5 cm (width data is found in TeaSpill.txt). Use numerical integration to estimate the area of the tea spill.

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