subject

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 int 8 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 off all the elements in datacellarray. answer for a: metalnames = {'aluminium', 'copper1, 'iron', 'molybdenum', 'cobolt', 'vanadium'}; % storing metal names in a cell array symbols = {'ar', 'cu', 'fe', 'mo', 'co', ' v'}; % storing metal symbols in a cell array atomicnumbers = int8([13, 29, 26, 42, 27, 23]); % storing metal symbols in an int8 array atomicweight = [26.98, 63.55, 55.85, 95.94, 58.93, 50.94]; % storing atomic weights in an integer array density = [2.71, 8.94, 7.87, 10.22, 8.9, 6.0]; % storing density in an integer array % storing crystal structure in single padded char array crystalstructurc = char(['fcc', 'fcc', 'bcc', 'bcc', 'hcp', 'bcc']); answer for b: % combining all the above in one cell array called datacellarray dataccllarray = {metalnames, symbols, atomicnumbers, atomicweight, density, crystalstructure}; answer for c: % finding 4rth element weight and crystalstructure fourthelement = {datacellarray{1, 1} {1, 4}, fourthelementwieght = datacellarray {1, 4} (l, 4), = datacellarray{l, 6}(7: 9)} average = mean(datacell array {1, 4})% mean of all atomicweights in datacellarray 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 clement with the maximum density. c) the element with the maximum atomic weight.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
question
Computers and Technology, 25.06.2019 06:30
How are slides deleted from a presentation?
Answers: 1
You know the right answer?
Consider the following information about metals: a) create the following arrays: store the name of...
Questions
question
Mathematics, 21.04.2020 17:55
question
Mathematics, 21.04.2020 17:55
question
Spanish, 21.04.2020 17:55
question
Mathematics, 21.04.2020 17:55
question
English, 21.04.2020 17:55
Questions on the website: 13722363