strcmp函数与if问题。
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
新锦江点击网址【微8785092】
am 20 Mai 2023
Beantwortet: 新锦江开户网址【微8785092】
am 20 Mai 2023
我目前的写法每次运行只能取到下面的情况,第一种情况无法取到,应该怎么改写呢?
谢谢
64位R2016b版本

0 Kommentare
Akzeptierte Antwort
新锦江开户网址【微8785092】
am 20 Mai 2023
字符串与字符串比较用strcmp,数字与数字比较用==
例如
if strcmp(x,'blue') & y==1
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!