index.png
please help I dont know why cant I get value 0,05 when I put it in variable or just print it

2 Kommentare

>> b=[0,5]
b =
0 5
Borna rasperic
Borna rasperic am 13 Nov. 2019
problem is in that that if I write in examplw Tau= 0,05, I get answer Tau=0 and below that ans =5

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Stephen23
Stephen23 am 13 Nov. 2019
Bearbeitet: Stephen23 am 13 Nov. 2019

1 Stimme

MATLAB only accepts decimal point , and does NOT accept a decimal comma.
When you write a comma you are writing two separate values.
When you write a point you will define a decimal number.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by