An N by N by N matrix code
Mostra commenti meno recenti
How do I code for N x N x N matrix using a letter.
Risposta accettata
Più risposte (3)
Walter Roberson
il 23 Set 2025
N = 20; %for example
Letter = 'D'; %for example
Array3d = repmat(Letter, N, N, N);
For sake of ridiculousness:
N = double('d'); % using a letter
myarray = zeros(N,N,N); % a NxNxN array
size(myarray)
Yes, I did think about creating a volumetric image of a letter, but I'm lazy today.
Magisha
il 2 Ott 2025
0 voti
imshow(iwant)
1 Commento
Walter Roberson
il 2 Ott 2025
This is the final line from @KSSV answer, and does not make any sense without the previous code posted by KSSV.
Categorie
Scopri di più su Data Type Conversion in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!