This is my code.
formatPlanet = input('What is the name of the exoplanet? ');
This is all I have so far but each time I try to input a planet name (ex: Kepler-452b) it keeps giving me the unexpected message. What should I do and how can I fix this code.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Okt. 2015

0 Stimmen

formatPlanet = input('What is the name of the exoplanet? ', 's');

Weitere Antworten (0)

Kategorien

Mehr zu Gravitation, Cosmology & Astrophysics finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by