Thursday, March 30, 2017

Why does part of my image turn black when applying functions to a part of an image in Matlab?



When I select a part of an image and apply a negative function to it, it works 100%: figure1


figure1 code


When trying to apply the same method using another function, the part of image becomes black:


figure2


figure2 code


What is the problem and how can I fix it?




No comments:

Post a Comment

periodic trends - Comparing radii in lithium, beryllium, magnesium, aluminium and sodium ions

Apparently the of last four, $\ce{Mg^2+}$ is closest in radius to $\ce{Li+}$. Is this true, and if so, why would a whole larger shell ($\ce{...