Understanding the code dlmwrite
Afficher commentaires plus anciens
Hello. can anyone help me to understand this code ?
- dlmwrite('test.txt', a, 'delimiter', ','); *
what is "a" and "delimiter" stand for in this code ?
one more is about reshape. below is the code.
c = reshape(b, x, y/3, 3);
i try to change "y/3" to "y/2" the result doesnt show up.
this is the full code. and sorry i really new in matlab. doesnt understand much the code.
a = imread('img2.jpg');
dlmwrite('test.txt', a, 'delimiter', ',');
b = dlmread('test.txt');
[x,y] = size(b);
c = reshape(b, x, y/3, 3);
image(c/255)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Common Operations 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!