Question: Please Answer Question 2: 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 2:

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!