can you answer this question using MATLAB CMPSC 200 SPRING 2018 Penn State Harrisburg 9. Create a
Fantastic news! We've Found the answer you've been seeking!
Question:
can you answer this question using MATLAB
Transcribed Image Text:
CMPSC 200 SPRING 2018 Penn State Harrisburg 9. Create a 3D array A with dimensions 4x4x4. Fill the contents however you want, but using numeric values. One quick way to do this would be with nested for loops. 10. Viewing A (:,:,1) as the 'front' of this 4x4x4 cube, and A(:,:,4) as the back, use indexing to retrieve each of the following, all of which will be 4x4 matrices: the 'top' layer of the cube the 'bottom' layer layer of the cube. the 'left' side the 'right' side 11. Hint for part 10: if you're stuck, try drawing a picture, and think about which indices need to range over all values (:) and which indices are fixed, for any particular side of the cube. For example, as we move around on the left side of the cube we encounter all rows (:) and all depths (:) but the column is always column 1, so the left side would be A(:,1,:). CMPSC 200 SPRING 2018 Penn State Harrisburg 9. Create a 3D array A with dimensions 4x4x4. Fill the contents however you want, but using numeric values. One quick way to do this would be with nested for loops. 10. Viewing A (:,:,1) as the 'front' of this 4x4x4 cube, and A(:,:,4) as the back, use indexing to retrieve each of the following, all of which will be 4x4 matrices: the 'top' layer of the cube the 'bottom' layer layer of the cube. the 'left' side the 'right' side 11. Hint for part 10: if you're stuck, try drawing a picture, and think about which indices need to range over all values (:) and which indices are fixed, for any particular side of the cube. For example, as we move around on the left side of the cube we encounter all rows (:) and all depths (:) but the column is always column 1, so the left side would be A(:,1,:).
Expert Answer:
Answer rating: 100% (QA)
Solution for the above question is clear all clc store the informationa about the earth planetsearth... View the full answer
Related Book For
Statistics For Business Decision Making And Analysis
ISBN: 9780321890269
2nd Edition
Authors: Robert Stine, Dean Foster
Posted Date:
Students also viewed these programming questions
-
Answer this question using the American Eagle (AE) Annual Report found in Appendix B of your textbook. For numerical answers do not include commas. To report your answer as a loss or a decrease use a...
-
please try to solve this question using Matlab and also explain it
-
use ASCE 7 -10 2.21 Given: ASCE 7 seismic design force requirements Find: a. The formulas for the base shear. Give section reference. b. The longest mapped maximum considered spectral response accel-...
-
. What is the output of the following program? Write your answer in the box below. #include using namespace std; int main() { int a=4; int b=6; int i; int j; } int** k; i = &a; j = &b; *j = 8; if...
-
What problems would confront a mutual fund trying to create an index fund tied to an equally weighted index of a broad stock market?
-
A Gallup poll of 2000 Russians taken between April and June 2014 (after the Olympic games in Russia and the annexation of the Crimean peninsula) showed that 83% approved of President Putins...
-
Pleading rules are principally contained in the California Code of Civil Procedure. However, in addition to the CCP, local rules generally control mechanics. Find some special local rules that are...
-
Carleton Company has two service departments and two production departments. Information on annual manufacturing overhead costs and cost drivers follows: The company allocates service department...
-
Why do companies need to take business processes into consideration when selecting ERP systems?
-
Casey Morgan is a single taxpayer, social security number 412-34-5670, who lives at 582 Brockton Lane, Columbus, OH 43081. Casey has income from a job as a manager, interest and dividend income, and...
-
How to grow and care for C4 plants.
-
Read the scenario and explain how the educator's cultural beliefs and practices have influence the way she communicates with children. Cultural beliefs and practices Zavart immigrated with her family...
-
Rosehut Olive Oil Company makes two grades of olive oil: standard and extra virgin. Rosehut has identified two activity cost pools, the related costs per pool, the cost driver for each pool, and the...
-
A company's inventory records report the following: Date Activities Units Acquired at Cost Units Sold at Retail August 1 Beginning inventory 1 5 units @ $ 4 2 = $ 6 3 0 August 5 Purchase 1 0 units @...
-
Salmone Company reported the following purchases and sales of its only product. Salmone uses a periodic inventory system. Determine the cost assigned to ending inventory using LIFO. Date Activities...
-
1. Apple Orchard Cafe has 12 FTEs, each employee is 1 FTE, 6 of these get paid $10/hour and 6 get paid $15/hour, and its revenue for April is $180,000. What should its daily total payroll cost be? (5...
-
With A any vector A. Vr = A. (a) Verify this result in cartesian coordinates. b) Verify this result using spherical polar coordinates. (Equation (2.44) provides V.)
-
Assessing simultaneous changes in CVP relationships Braun Corporation sells hammocks; variable costs are $75 each, and the hammocks are sold for $125 each. Braun incurs $240,000 of fixed operating...
-
This table summarizes results of a survey of the purchasing habits of 1,800 13- to 25-year-olds in the United States in 2006, a much sought-after group of consumers.8 Each row of the table indicates...
-
A manufacturer produces custom metal blanks that are used by its customers for computer-aided machining. The customer sends a design via computer (a 3-D blueprint), and the manufacturer comes up with...
-
The Organization for Economic Cooperation and Development (OECD) tracks various summary statistics of the member economies. The countries lie in Europe, parts of Asia, and North America. Two...
-
Why is the thermodynamic process also called cyclic process? Explain with suitable example.
-
A mercury manometer reads \(40 \mathrm{~cm}\) at \(30^{\circ} \mathrm{C}\) and \(1 \mathrm{~atm}\). Determine the absolute pressure, given that \(ho_{\mathrm{Hg}}=14.02 \mathrm{~g} /...
-
Define isothermal, isochoric and isobaric processes with suitable examples.
Study smarter with the SolutionInn App