Value for the side of the octagonal prism

Assignment Help MATLAB Programming
Reference no: EM13163254

Create a function that will draw an octagonal prism as shown below. The base of the prism is a regular octagon (all the sides are equal). This function should have 3 function inputs (input parameters): an array that contains the xyz values of the point of origin, P0; a scalar value for the side of the octagonal prism, and a scalar value for the height of the octagonal prism. Generate the x,y,z arrays that define the 9 faces of the pyramid (octagonal base and 8 triangles. Use fill3 command to create the faces (faces with parallel bases should be in the same color). You may either plot the front faces, set the transparency, then draw the back faces as shown below or plot all the faces and then set the transparency. You do not have to label the axes or show the point of origin. In the script file prompt the user to enter the values for the origin, the side of the base and the height and call the function.

 

Reference no: EM13163254

Questions Cloud

Show the bitmap : Show the bitmap after:a) File B is written, using 3 blocks b) File A is deleted. c) File C is written, using 4 blocks
What is the molar mas of agno3 : suppose you want to find out how many milliliters of 1.0 M AgNO3 are needed to provide 169.9g of pure AgNO3.
Describe the reactant and products of the chemical reaction : Describe the reactant and products of the chemical reaction. Was the reactant (potato chip) completely consumed? What evidence supports your answer?
What is the new pressure of the bicycle tire : a bicycle tire is filled with air to a pressure of 100 psi at a temperature of 100 degrees C. Riding the bike on asphalt on a hot day increases the temperature of the tire to 58 degrees C. the volume of the tire is increased by 4%. what is the new..
Value for the side of the octagonal prism : Value for the side of the octagonal prism, and a scalar value for the height of the octagonal prism. Generate the x,y,z arrays that define the 9 faces of the pyramid (octagonal base and 8 triangles. Use fill3 command to create the faces (faces wit..
What is classification of each reactant as metal or nonmetal : what is the classification of each reactant as metal or nonmetal?
Various types of accounting systems : Write a paper in which you summarize the various accounting systems that each firm provides and various types of accounting systems
Which of these three slip directions is most favored : A single crystal of a metal is oriented for a tensile test such that its slip plane normal makes an angle of 65.5° with the tensile axis. Three possible slip directions make angles of 30°, 48°, and 78° with the same tensile axis.
What is the half-life of a compound : What is the half-life of a compound if 89 percent of a given sample of the compound decomposes in 56 min? Assume first-order kinetics.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Secant method to tryt to find out the root

create a function that will use the secant method to tryt to find out the root

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Matlab: create a function that will use the secant method

MATLAB: Create a function that will use the Secant method

  Travelling salesman problem involves

The Travelling Salesman problem involves a salesman who has to visit a number of cities in a single closed tour. The salesman always starts and ends the tour in his home city and visits each other city on the tour exactly once.

  Write a function in matlab

write a function in MATLAB

  Compute and flote 4 average temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Biologically inspired method

Biological ly Inspired Methods + Ma tlab Assignmen t,  Define a problem of your choice which can be tackled by Biologically Inspired Methods. The problem must satisfy the following requirements

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Give the gradient operator in paraboloidal coordinates

Given that the le data.txt contains only real numbers seperated by white space, write down a sequence of maple commands that will read the data into a maple list and then plot a histogram of the elements in the list.

  Write a function that takes a list of integers as argument

Write a function that takes a list of integers as argument and returns a pair consisting of the sum of the even positions and the sum of the odd positions of the list. You should not use any auxiliary functions.

  Parking in garage using matlab

In matlab: parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour.

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