Question: Matlab Programming Write a function periodictable(property,groupnumber) that returns the requested property of atoms belonging to the requested groupnumber. Consider only the first 18 atoms in
Matlab Programming
Write a function periodictable(property,groupnumber) that returns the requested property of atoms belonging to the requested groupnumber. Consider only the first 18 atoms in the periodic table (i.e., up to and including Argon). Inside your function, store the periodic table of elements as a structure array. Store the atomicnumber, group, period, and symbol for each atom. >> periodictable('symbol',2) ans = 'Be' 'Mg' >> periodictable('symbol',3) ans = {} >> periodictable('atomicnumber',1) ans = [1] [3] [11] >> periodictable('period',13) ans = [2] [3]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
