Question: Please perform the following set of connected problems using MATLAB: Consider the following information about metals: a) Create the following arrays: Store the name of
Consider the following information about metals: a) Create the following arrays: Store the name of all metals into a cell array Store the symbol for all these metals into a cell array. Store the atomic number into an int8 integer array. Store the atomic weight into a numeric array. Store the density into a numeric array. Store the crystal structure into a single padded character array. b) Group the arrays you created in part (a) into a single cell array, named dataCellArray. c) Extract the following information from your cell array (i.e., form dataCellArray. Find the name, atomic weight, and crystal structure of the fourth element in dataCellArray. Find the average atomic weight of all the elements in daiaCellArray. Store the information presented in Problem 4 into a structure array. Name your structure array dataStructArray. Use your structure array to determine a) the maximum density. b) the element with the maximum density. e) the element with the maximum atomic weight. Write a script to ask and let the user to enter additional information into your dataStructArray created in Problem 5. Use your script to add the following
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
