What does Unexpected Matlab expression mean?

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 ExchangeGravitation, Cosmology & Astrophysics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by