An NxNxN matrix code
2.145 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How do I code for NxNxN matrix using a letter.
0 Kommentare
Akzeptierte Antwort
KSSV
am 11 Nov. 2021
text(0.5,0.5,'D','FontSize',90,'Color','k')
axis off
I=frame2im(getframe(gcf));
iwant = imresize(I,[50 50]) ;
imshow(iwant)
4 Kommentare
Spaceman
am 6 Mär. 2024
text adds text to one point, specifying x and y as scalars. i.e. (0.5,0.5)
'D' is what appears in the image.
'Fontsize',90 specifies how large the D will be.
'Color','k' dictates the D will be black.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!