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, 21.06.2019 20:30
Write 150 words on what kind of website would you like to make in the future? what sites would you like to model yours after?
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What does 21 pilots middle aged name as a band 15 years prior to them naming their band 21 pilots?
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
You know the right answer?
Consider the following information about metals: a) create the following arrays: store the name of...
Questions
question
Mathematics, 14.01.2022 01:00
question
Mathematics, 14.01.2022 01:00
Questions on the website: 13722361