Pixel based image creating
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Taha Erkam Orhan
le 16 Juin 2020
Commenté : Taha Erkam Orhan
le 16 Juin 2020
Hi. I want to create the following image by Matlab Code. What is the easiest way to do it. Thanks.
3 commentaires
Aditya Verma
le 16 Juin 2020
Modifié(e) : Aditya Verma
le 16 Juin 2020
Hi, are you looking to create the same image, or similar pixel based images? You might need to enter the values in matrix manually, as pointed by KSSV.
Réponse acceptée
KSSV
le 16 Juin 2020
m = 15; n = 15;
[X,Y] = meshgrid(1:m,1:n) ;
Z = 255*ones(m,n) ;
idx = randperm(m*n,100) ;
Z(idx) = 0 ;
% pcolor(X,Y,Z)
imshow(Z)
grid on
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Read, Write, and Modify Image 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!