supplyDemand.m script - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

supplyDemand.m script

Description:

supplyDemand.m script Print welcome information to the user Load the initial supply and demand data Compute the equilibrium point for the original data – PowerPoint PPT presentation

Number of Views:15
Avg rating:3.0/5.0
Slides: 2
Provided by: Ellen237
Category:

less

Transcript and Presenter's Notes

Title: supplyDemand.m script


1
supplyDemand.m script Print welcome information
to the user Load the initial supply and demand
data Compute the equilibrium point for the
original data Ask the user if they want to
continue the simulation While the user wants to
continue Ask the user for changes in
supply and demand Compute the new
equilibrium point Ask the user if they
want to continue
loadData.m function Inputs none Outputs supply
prices, demand prices, supply quantities,
demand quantities Ask the user which
source theyd like to use If the user wants to
use the Mathworks data Load the Mathworks
data Assign the output variables to the
associated values Otherwise Load the
widget data Assign the output variables
to the associated values
computeEQ.m function Required inputs supply
prices, demand prices,
supply quantities, demand
quantities Optional inputs change in supply,
change in demand Outputs equilibrium price,
equilibrium quantity Adjust supply and demand
quantities using the input (or default)
changes in supply and demand Compute the
equilibrium price and quantity Print the new
equilibrium point Display the new supply and
demand curves and new equilibrium point
displayCurves.m function Inputs supply prices,
demand prices, supply quantities,
demand quantities, equilibrium price,
equilibrium quantity This function is already
defined do not make any changes here!
Write a Comment
User Comments (0)
About PowerShow.com