why does the subtraction gives me a rong matrice?
Mostra commenti meno recenti
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? :\
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!