Question
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
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. (Hint: get help and use the int8() command)
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. (Hint: get help and use the char() command)
b) Group the arrays you created in part (a) into a single cell array.
c) Extract the following information from your cell array:
Find the name, atomic weight, and crystal structure of the fourth element in the list.
Find the average atomic weight of the elements in the table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started