What is difference between x='93'; and x=93; ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kelvin Viroja
am 26 Aug. 2016
Beantwortet: Guillaume
am 26 Aug. 2016
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...
0 Kommentare
Akzeptierte Antwort
Adam
am 26 Aug. 2016
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!
0 Kommentare
Weitere Antworten (1)
Guillaume
am 26 Aug. 2016
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!