Info

This question is closed. Reopen it to edit or answer.

imwrite and imshow problem

1 view (last 30 days)
Fatima Rashid
Fatima Rashid on 18 Nov 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi all,
I have a problem, matlab is showing different images in imshow and imwrite. How to solve this problem?
  1 Comment
Walter Roberson
Walter Roberson on 19 Nov 2018
What is class() and size() of your data? If it is floating point, what is min() and max() of the data? Is your code using colormap() anywhere?

Answers (1)

Haritha
Haritha on 19 Nov 2018
Edited: madhan ravi on 19 Nov 2018
Hi,
Before using imshow use the below command:
figure;

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!