Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Whats wrong with my code? Mediterranean empires as he must ship the antiquities in plain wooden shipping crates to avoid alerting local and international authorities.

Whats wrong with my code?

image text in transcribed

image text in transcribed

image text in transcribed

Mediterranean empires as he must ship the antiquities in plain wooden shipping crates to avoid alerting local and international authorities. crates and which standard commercial wooden shipping crates the antiquity could be shipped in (using the index numbers). The conversion factor from cubits to inches is not standard and depends on which culture/empire the antiquity is from: - Egyptian Royal Cubit: one cubit is 20.83 inches - Sumerian/Babylonian Cubit (kus): one cubit is 20.42 inches - Persian Cubit: one cubit is 20.42 inches - Greek Cubit (pechys): one cubit is 18.20 inches - Roman Cubit: one cubit is 17.47 inches - Others: one cubit is 21.0 inches The wooden shipping crate dimensions are stored in the MATLAB workspace file named lab5Data. mat. The crate dimensions (length, width, height) in inches are stored in the N by 3 array crateDim. so that a switch statement can be used to set the appropriate cubit conversion factor for the empire in your function. Examples of the use of the input function are shown: empireChoice = input('Choose an Empire: Egyptian (1) Sumerian (2) Persian (3) Greek (4) Roman (5) Other (6)'); width = input('Enter width in cubits: '); Are convln and inchLength correct? Variable inchLength must be of size [1 1]. It is currently of size [25 1]. Check where the variable is assigned a value. Anything other 1 to 6 should be assigned to the default value 21 Is lengthOfCrates and convln correct? Is logCrate correct? Variable logCrate has an incorrect value. It should be a Nx1 vector Is acceptableCrates correct? Variable acceptableCrates must be of size [22 1]. It is currently of size [0 1]. Check where the variable is assigned a value. It should be a vector hold the indeices of the acceptable crates. Is numbers correct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions