Question: MATLAB Question Objective: Making the program showing the geological time scale after input the name of the epoch and returns the beginning and end in

MATLAB Question

Objective: Making the program showing the geological time scale

after input the name of the epoch and returns the beginning and end in Ma (i.e. input: Eocene, output: from 55.8 to 33.9 Ma)

My code: Trial 1

b=input('Please type the geiological time period ');

if strcmp(b,'Quaternary')

disp('The geological time is: 0 to 2.58 Ma')

elseif strcmp(b,'Miocene')

disp('The geological time is: 23.03 to 33.9')

end

My code: Trial 2

b=input('Please type the geiological time period ');

if b=='Quaternary'

disp('The geological time is: 0 to 2.58 Ma')

elseif b=='Miocene'

disp('The geological time is: 23.03 to 33.9')

end

Question: but these are not working. What is the problem? I want to use if statement. not others.

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!