Question
Please Answer Question 3: In Chemistry, Periodic Table contains many information of each element. 1. Write a script (code in script file) named CellData.m which
Please Answer Question 3:
In Chemistry, Periodic Table contains many information of each element.
1. Write a script (code in script file) named CellData.m which create a cell that stores the elements Name, Symbol, number, and mass up to Neon, and display. Make cell name as elementC.
2. Write a script (code in script file) named StructData.m which create a structure that stores the exact same information above and display. Make structure name as elementS.
3. Display the information of H, C, O individually in the command window. Save the history in diary or document named PeriodicTable.
Sample Display:
PART 1 DISPLAY:
>> celldisp(elementC)
elementC{1} =
Hydrogen
Helium
Lithium
Beryllium
Boron
Carbon
Nitrogen
Oxygen
Fluorine
Neon
elementC{2} =
H
He
Li
Be
B
C
N
O
F
Ne
elementC{3} =
1 2 3 4 5 6 7 8 9 10
elementC{4} =
1.0079 4.0026 6.9410 9.0122 10.8110 12.0110 14.0070 15.9990 18.9980 20.1800
PART TWO DISPLAY
elementS =
'Name'
'Symbol'
'Number'
'Mass' Name: 'Hydrogen '
Symbol: 'H '
Number: 1
Mass: 1.0079
Name: 'Helium '
Symbol: 'He'
Number: 2
Mass: 4.0026
Name: 'Lithium '
Symbol: 'Li'
Number: 3
Mass: 6.9410
Name: 'Beryllium'
Symbol: 'Be'
Number: 4
Mass: 9.0122
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