why does the subtraction gives me a rong matrice?
Afficher commentaires plus anciens
Hello Although no one has helped me yet,but still I am hopeful. Here is another problem I ran into during running a MATLAB code: I got a matrix from a gray image(lets name it A); then, when I tried to do " B=A-A.^2" the answer for B was a zero matrix!! (FYI, elements of A are ranged from 0 to 255).(it gives me a zero matrix and then when I try to make a division like C=K/B, it gives me a matrix which all of its elements are 255!!) The subtraction's result is obviously incorrect which makes my code results to be wrong! I can't get why? Could any one help me on this please? :\
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!