How to save the matrix value of bmp image ?
조회 수: 9 (최근 30일)
이전 댓글 표시
Hey,
I have an image which is in bmp format and i coverted it in 0 and 1 using the below code
m1=im2bw(imread('m1.bmp'))
imshow(m1)
now in the command promt I am getting large value of 0 and 1 and as I tried to copy it they have many values not there.
Is there any way where I can get all the values of 0 and 1.
Thankyou ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/560698/image.bmp)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/560698/image.bmp)
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2021년 3월 24일
편집: KALYAN ACHARJYA
2021년 3월 24일
Once you load the image,Matlab itself save it as a Matrix with assigned variable name. In the above mentioned example m1 is the variable, where the matrices data is saved.
More, you may save the matrices data in excel also, please refer writematrix function.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!