Error using + Matrix dimensions must agree
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
RGB=real(DFT)+WMI;
6 commentaires
Steven Lord
le 8 Nov 2021
Yes, I agree that likely the dimensions don't agree. Seeing the size of each array may give us some insight into what the cause of that discrepancy may be and suggest a solution. For instance, if both are vectors but one is one element shorter I'd ask if they called diff to create the shorter vector. If one is a vector and the other has the same number of elements but is a different shape, calling reshape may be what the poster wants.
Réponses (1)
yanqi liu
le 9 Nov 2021
RGB=real(DFT)+imresize(WMI,[size(DFT,1) size(DFT,2)], 'bilinear');
4 commentaires
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!