Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私がこのようなものを持っている場合:
m = [0 1 0 0 1 1]
に変えたい
s = '010011'
Python では、とても簡単です。
m = [0, 1, 0, 0, 1, 1] s = ''.join(m) # s = '010011'
MATLAB でどのように行うのですか?
別の方法は次のようになると思います:
s=num2str(m); s(s==' ')='';
また
s=regexprep(num2str(m),'[^\w]','')