An NxNxN matrix code

2,907 次查看(过去 30 天)
dunphy
dunphy 2021-11-11
评论: Spaceman 2024-3-6
How do I code for NxNxN matrix using a letter.

采纳的回答

KSSV
KSSV 2021-11-11
text(0.5,0.5,'D','FontSize',90,'Color','k')
axis off
I=frame2im(getframe(gcf));
iwant = imresize(I,[50 50]) ;
imshow(iwant)
  4 个评论
dunphy
dunphy 2021-11-11
text(0.5,0.5,'D','FontSize',90,'Color','k')
what are these for?
Spaceman
Spaceman 2024-3-6
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by