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.
マトリックスの最初の列にある数字 (5) の複数の出現箇所を -1 に置き換える必要があります。どうすればいいですか?
これを試して:
A(A(:,1)==5,1) = -1
お役に立てれば。