color leaves out data
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
James McDaniel
le 4 Juin 2015
Réponse apportée : Image Analyst
le 4 Juin 2015
The command
pcolor(1:4, 1:4, randn(4,4))
produces a tiled plot with 9 colors even though
randn(4,4)
is a collection of 16 numbers. What happened to the other 5?
0 commentaires
Réponse acceptée
Image Analyst
le 4 Juin 2015
Yes. pcolor() leaves off the last row and column. Don't use it - I never do. Use imshow() instead. Or, if you have an old version of MATLAB, or don't have the Image Processing Toolbox, use image() or imagesc().
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Red dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!