ENGI 1331 – Exam 1

TASK 1
Function: function RESULT = Task1(Percent,SelE)
 For the selected element, determine the average and median percent composition for each alloy and the range of values
(minimum and maximum value).

TASK 2
Function: function [OverallMax,MAXalloy,MAXelement, PercentNorm] = Task2(Element,Alloy,Percent)
 Determine the overall maximum percent value from Percent and associated Alloy and Element.
 Using the overall maximum value, create a normalized Percent matrix and store as PercentNorm.
NOTE: To normalize the matrix, divide all values by the overall maximum and multiple by 100.
This will make the overall maximum value equal to 100.

TASK 4
Function: function [AlloyMax,maxNUM,ELEMENTless] = Task4(USERpercent,Element,Alloy,Percent)
 Determine which alloy number has the most elementsless than the user entered percent and greater than zero. For this alloy
number, determine the number of elements that met the condition and identify the associated elements.
 Store a string array of only the element that met the condition and name as ELEMENTless.

DETAILED ASSIGNMENT

20201001013008prompt

Powered by WordPress