Please Solve the following proplems by using Matlab 1. 2. 3. 4. Challenge 8.7.2:
ID: 2082507 • Letter: P
Question
Please Solve the following proplems by using Matlab
1.
2.
3.
4.
Challenge 8.7.2: Relational operators and row arrays: Overweight baggage Activity This activity uses a 3rd party app. Though your activity may be recorded, a refresh may be required to update the banner to the left. Relational operators and row arrays: Overweight baggage Assign overweightBaggage with true wherever baggageWeight is above maximumWeight. Ex: If baggageWeight is [28, 45, 55, 30) and maximumWeight is 50, then overweightBaggage is false, false, tru falsel Your Function Save C Reset M MATLAB Documentation E l function deliveryCost CalculateDelivery baggageWeight) 2 baggage weight weight of baggage in pounds Assign delivery cost with the delivery a piece of baggage weighing baggageWeight 5 delivery cost Rounding Baggage Weight baggage Weight ceil (baggageWeight) Calculating Delivery cost 10 delivery Cost 20 (baggage Weight 50) 1); 11 13 end function 14Explanation / Answer
Question 1
Copy the following code.
function [overweightBaggage] = CheckWeight(baggageWeight,maximumWeight)
overweightBaggage = (baggageWeight>maximumWeight);
end
Question 2
Copy the following code.
function [fastRunTimes] = GetTimes(runTimes)
fastRunTimes = runTimes((runTimes<=480));
end
Question 3
Copy the following code.
function [welcomeMessage] = PrintGreeting(userName)
welcomeMessage = ['Greetings ' userName];
end
Question 4
Copy the following code.
function [annotatedText] = WebMarkup(identifierTag, elementText)
annotatedText = ['<', identifierTag, '>', elementText, '</', identifierTag, '>'];
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.