An NxNxN matrix code

2.027 visualizaciones (últimos 30 días)
dunphy
dunphy el 11 de Nov. de 2021
Comentada: Spaceman el 6 de Mzo. de 2024
How do I code for NxNxN matrix using a letter.

Respuesta aceptada

KSSV
KSSV el 11 de Nov. de 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 comentarios
dunphy
dunphy el 11 de Nov. de 2021
text(0.5,0.5,'D','FontSize',90,'Color','k')
what are these for?
Spaceman
Spaceman el 6 de Mzo. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by