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.
我有一个二维二进制矩阵。如何将其转换为黑白图像?
你应该写
I = mat2gray(A)
你可以做一个
imshow(I)
看到它工作。