How to create 3D matrix with empty cells
51 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Titus Priscu
le 7 Août 2022
Modifié(e) : Bruno Luong
le 7 Août 2022
So I am currently trying to make a 3D matrix(300x300x300) and want the cells to be empty ([]) so i can input data into it later. I know I can use the zeros function to create an 3D matrix of zeros but I need the cells to be empty as it would affect some of the calculations I am using to fill the matrix with data if the cells had zeros in them rather than being empty it would not work.
If you know a way to make an empty 3D matrix please let me know.
Any help is appreciated :)
0 commentaires
Réponse acceptée
Bruno Luong
le 7 Août 2022
Modifié(e) : Bruno Luong
le 7 Août 2022
cell(3,3,3) % replace 3 with 300 for you
I'm still afraid you'll be soon in trouble if you ask such question about easy data creation.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!