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.
a=[4 2 5 9]
次のベクトルを取得するには、for ループを使用してコードを作成する必要があります。
[4-2 4-5 4-9 2-5 2-9 5-9]
MATLAB でこれを行うにはどうすればよいですか?
a = [ 4 2 5 9] a = 4 2 5 9 s = combnk(a, 2) s = 5 9 2 9 2 5 4 9 4 5 4 2