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.
私は1 x 9の行列を持っています:
D = [6 5 2 9 8 4 3 1 7];
しかし、1 - 9 から 4 - 12 に番号を付け直したいと思います。
D = [9 8 5 12 11 7 6 4 10]
これを達成する方法はありますか?
ありがとう、
ベクトルに 3 を追加するだけです。
D = [6 5 2 9 8 4 3 1 7]; E = D + 3;
これにより、
E = 9 8 5 12 11 7 6 4 10