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
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