Question: % 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

 % load the container weights and container volumes %load('container.mat ','conWt', 'conVol');

% 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!