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

  Socioeconomic and political organization of the society

Why monumental architecture is unique to cities. What do such displays imply about the socioeconomic & political organization of the society that created it?

  Federalism and individual states rights

While there is certainly disagreement over how Federalism should work, the supremacy clause has been regularly uphelp by the Supreme Court to prove that states cannot use their inherent powers to thwart the intent of federal law.

  Explain what the idea of manifest destiny

Explain what the idea of Manifest Destiny was, and how it provided justification for American expansion. In explaining how it provided justification, explain what that implies about how white Americans who emigrated from the East to the frontier view..

  Discuss the impacts of cultural tourism on the host society

Distinguish between the different typologies of cultural tourists, illustrating your answer with examples Critically discuss the impacts of cultural tourism on the host society and destination

  Annotated bibliography on toddlers

Compose a annotated bibliography on toddlers having asthma using EBSCO host as your search datebase. Include works cited.

  Engineers-management-local authority-government

What and how are the code of ethics violated by the people involved (engineers, management, local authority, government) in the valujet 592 case?

  Hebbs theory on strengthening two neuron

How can the connection between the two neurons be strengthened, by using Hebb's theory?

  Assess employee readiness for change-resistance

What did the company do to assess employee readiness for this change? Was there any resistance? Why or why not? How was this managed?

  Actions of the environmental activists ethical

At a lumber mill workers were injured when the band saw was knocked off of the pulleys by metal spikes driven into the tree. Local ecological activists had driven these metal spikes into the trees to make the lumber company stop logging in a specific..

  How holy trinity by masaccio express renaissance humanism

How does the Holy Trinity by Masaccio express 15th century Renaissance humanism? Incorporate examples from two other artists from same era.

  Effective value chain

For there to be an effective value chain, a company’s  marketing department should take the view of which of  the following?

  Figures engaged in famous exchange

Which of these figures engaged in a famous exchange of letters with a prominent medieval philosopher?

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