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.

 채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 19일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Gravitation, Cosmology & Astrophysics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by