フィルターのクリア

What is difference between x='93'; and x=93; ?

2 ビュー (過去 30 日間)
Kelvin Viroja
Kelvin Viroja 2016 年 8 月 26 日
回答済み: Guillaume 2016 年 8 月 26 日
Basically I wanna know about each and every detail of MATLAB... So please put details here... What is difference between x=93; x='93';
Thanks in advance...

採用された回答

Adam
Adam 2016 年 8 月 26 日
x = 93
creates a numeric variable
x = '93'
creates a char variable containing a string.
This should be very easy to see from just trying it in the command window though!

その他の回答 (1 件)

Guillaume
Guillaume 2016 年 8 月 26 日
I wanna know about each and every detail of MATLAB. Read the documentation or grab a book from the library.
For your specific question, see fundamental matlab classes. x = 96, creates a numeric variable (a double to be specific), x = '96' creates a char variable.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by