Create a matlab function called drawshape

Assignment Help Other Subject
Reference no: EM13264100

Create a MATLAB function called drawShape() that performs the following:

a. Displays a numbered list of shapes as shown below

b. Uses the inbuilt MATLAB function input()to request the user to

i. select a shape from this list, and

ii. a letter to indicate the color to fill the shape (for example: `r' for red)

You should decide the dimensions of the shapes.

1. Right angled Triangle

2. Circle

3. Square

4. Pentagon

5. Hexagon

6. Octagon

7. Star

8. Rhombus

9. Trapezoid

Reference no: EM13264100

Questions Cloud

Calculate the minimum power required-heat pump cycle : Calculate the minimum power required (in hp) for a heat pump cycle to maintain a dwelling at 70 degrees F by heat transfer to the dwelling at a rate of 1000 Btu/h when the outside temperature is 40 degrees F.
Molecules of lipid in tethered monolayer film of gold : Calculate the number of lipid molecules we added to each cell to make the tethered membrane. Calculate the number of molecules of lipid in the tethered monolayer film on gold.
Assume natural gas is available as fuel-flame temperature : You may assume natural gas is available as a fuel, and may sustain a flame temperature of up to Tmax. For fluid machinere (compressors, turbines, pumps) assume an efficiency \eta. For all heat exchangers assume a minimum driving force \DeltaTDF . Ass..
Areas of social responsibility : You are the CEO of a factory that manufactures furniture. Explain briefly why your company needs to be socially responsible. Briefly comment on any two areas of social responsibility.
Create a matlab function called drawshape : Displays a numbered list of shapes as shown below. Uses the inbuilt MATLAB function input()to request the user to
Five-phase model and the punctuated equilibrium model : Analyze the development of the team in terms of the five-phase model and the punctuated equilibrium model. Which model does the best job of describing how the team evolved?
Social security disability benefits-family-medical leave act : To be eligible for Social Security disability benefits, an individual's disability must have existed for at least six months and must result in, or be expected to result in, death. Under the Family and Medical Leave Act, if an employee is returned to..
Company review and business relationships : Identify two companies that have sustained growth and similarities in their business model and practices. Provide a full review on both selected companies, including what they have done that “works” and what they have done that “doesn’t work”. Also n..
The colume of a soup can-measured in cubic ounces : Is the following a function: "The colume of a soup can, measured in cubic ounces"? Why or why not?

Reviews

Write a Review

Other Subject Questions & Answers

  Systems model of any social or political process

Assess the strengths and weaknesses of any systems model of any social or political process . Recommend how one can overcome the weaknesses you identified.

  Research methods and philosophy of science

Illustrate out which approaches the following three philosophies of science should align with, and why: empiricism, interpretivism, and deconstructivism/critical theory.

  Treating the addictive behavior

Describe at least one model and approach to treating this addictive behavior.

  Characteristics of a line drawing of an apple

Look at any line drawing of an apple. List the things you notice about that drawing as if you had never experienced an apple before. For example, if you only had the photograph or line drawing, you could not say it was juicy. You could not say it ..

  Causes of the extraordinarily severe

Which of the following is the only correct response concerning the location and causes of the extraordinarily severe, 1993, flooding on the Mississippi River and tributaries?

  Moral development-main criticism of kohlberg''s theory

The ability to solve abstract problem such as those found in algebra and higher mathematics is influenced by both development. consistent with notable trends during the adolescent growth spurt, you'd expect the average 12yearold girl to be _____tha..

  Proportional representation systems

Which of the following is true about proportional representation systems?

  Attacking an enemy's vital centers

What did General Mitchell mean about attacking an enemy's "vital centers." Did his theories presage the great strategic bombing campaigns against Germany and Japan? Is it possible to defeat an enemy nation entirely using air power? State reasons why ..

  Assessment process to make a diagnosis

Identify what information would be important to collect during the initial assessment process to make a diagnosis and why.

  Explain sontag regarding dilemma of contemporary women

Consider extent to which you agree (or disagree) with Sontag regarding about plight of contemporary women with respect to beauty. To what extent are men liable for women's obsession with beauty?

  Behaviors of social dominance nfluence evolutionary process

How do different behaviors of social dominance and courtship display influence evolutionary process? What other behaviors might have the influence on evolution?

  Cause of depression

This is your opportunity to present your side on the cause of depression, an alternative side on the cause of depression, or to produce a researched opinion on some other topic in general psychology approved by your instructor.

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