Question: Question 1 Write a matlab function called CuboidVolume that takes 3 arrays one for the length (L), the second array is for the width (W)

Question 1 Write a matlab function called CuboidVolume that takes 3 arrays one for the length (L), the second array is for the width (W) and the third array for the hight (H), then it returns the calculated volume if the 3 arrays are positive and of same length otherwise returns V=-1. (Note: use vectorized code only) Volume = L x W x H
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
