How can i write the function which input is a 3×3 matrix, named A, and the program should output corresponding picture in a txt file. The number in matrix A determines how many cubes should be located in the corresponding position.
Afficher commentaires plus anciens
How can I write the function which input is a 3×3 matrix, named A, and the program should output the corresponding picture in a txt file. The number in matrix A determines how many cubes should be located in the corresponding position. Here are some samples in picture

4 commentaires
Walter Roberson
le 8 Oct 2018
What are the first and last rows for?
Walter Roberson
le 8 Oct 2018
So first row is "behind", last row is "in front"?
John Drake
le 8 Oct 2018
@John Drake: do not close question that have answers. This is a public forum, and the volunteers who answer questions here do so on the understanding that their answer will be available for all future browsers of this forum. By deleting your question text and closing the question you unilaterally decide that their volunteer effort and time belongs only to you. This is not appreciated.
If you want private consulting then you can find plenty of services on the internet who will happily give you code and help, in return for a small fee.
Réponse acceptée
Plus de réponses (1)
KSSV
le 8 Oct 2018
0 votes
You need to plot a cube....have a look on this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube
3 commentaires
John Drake
le 8 Oct 2018
KSSV
le 8 Oct 2018
Ohhh.....yes it is mentioned a text file..why text file in specific?
John Drake
le 8 Oct 2018
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!