看板 MATLAB 關於我們 聯絡資訊
今天我想寫一個任意輸入一2進位 會轉成10進位 然後這個跑出來的10進位值 我要再拿去做運算 clear x = input('x='); y = bin2dec('x'); y 可是一直出現Binary string may consist only of characters 0 and 1 有沒有高手能告訴我到底是哪裡出問題 先謝謝了> < -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.101.59
diva:y = bin2dec(x) 試試 03/14 21:07
kevinztw:好像要先用num2str 03/14 22:40
flyhightosky:試試看bi2de 03/15 15:23