Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

% load the container weights and container volumes %load('container.mat ','conWt', 'conVol'); % we will generate the vector covWt and conVol randomly here for testing purpose

image text in transcribed

% load the container weights and container volumes

%load('container.mat ','conWt', 'conVol');

% we will generate the vector covWt and conVol randomly here for testing purpose

n = randi([15 25]) % Random number of containers between 15 to 25

conWt = randi([5,100], 1, n)

conVol= randi([1000 3000], 1,n)

%Determine how many containers have a fill weight greater than 10 kg, assign it to wt_gt_10

wt_gt_10 =

%Determine the mean density of the containers. Container density is container mass (weight) divided by container volume and can be computed using p=m/V.

p =

%Find Logic vector that corresponding to containers having a density greater than 0.02 kg/cm3 but less than 0.05 kg/cm3, conDenBoolean_gt_002

conDenBoolean_gt_002 =

%Determine which containers (in terms of indices) have a density greater than 0.01 kg/cm3, conDenIdx_gt_001

conDenIdx_gt_001 =

%Determine the total fill weights of the containers with a density greater than 0.01 kg/cm3, assign it to wt_Den_gt_001

wt_Den_gt_001 =

program using the comment skeleton of below that will: 1. Determine how many containers have a fill weight greater than 10kg. 2. Determine the density of the containers. Container density is container mass (weight) divided by container volume and can be computed using p=Vm. 3. Find Logic vector that corresponding to containers having a density greater than 0.02kg/cm3 but less than 0.05kg/cm3, assign it to conDenBoolean_gt_002 4. Determine which containers have a density greater than 0.01kg/cm3. 5. Determine the fill weights of the containers with a density greater than 0.01kg/cm3

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

What is the history of this situation?

Answered: 1 week ago