How a 4D and 5D matrix or array look like? Can we say that a 4D array is another for of 3d or reshaping the 3d matrix in a bigger 3d matrix. Please reply soon.
80 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Isha Sehgal
el 23 de Oct. de 2015
Comentada: Hieu
el 12 de Dic. de 2022
PLease help me to understand Multidimensional arrays and matrix. It is being difficult to visualize 4d/5d arrays/matrix.
0 comentarios
Respuesta aceptada
jaykrushna Patel
el 30 de Sept. de 2017
There are many examples where we process the multidimensional arrays to store the and manage data in real life. and we process them on a daily basis unknowingly.
Example of Book Shelf of dictionaries in will give you much easier and simple understanding of 5D matrix.
consider one word as an element, stored in any matrix. So, a line in a dictionary can be compared with Vector(word stored in a row), and one page of a dictionary with a 2D matrix. So that makes a dictionary a 3D matrix( a set of the 2D matrix). Now assume you have one bookshelf of 5 rows full with different dictionaries. So, a row of bookshelf will be a 4D matrix. and bookshelf itself will be the example of the 5D matrix. now this example can be extended to 6D matrix A library with one Row of Bookshelves.
Now if you want to find the meaning of a word in a library, First you have to find on which bookshelf dictionary is(6th index). on which row of bookshelf dictionary is.(5th index), then if the dictionary is the 9th book in that row it will be your 4th index. Page number of the word will be the 3rd index, No. of the line will be 2nd index and no of the word in that line will be your 1st index. So you can locate a single word with only 6 values.
this example can be extended by dividing the library into multiple sections(7D) than multiple floors(8D), interconnected libraries(9D) and so on.
5 comentarios
Más respuestas (1)
James Tursa
el 23 de Oct. de 2015
You could say:
A vector is an array of scalars.
A 2D matrix is an array of vectors.
A 3D array is an array of 2D matrices.
A 4D array is an array of 3D arrays.
A 5D array is an array of 4D arrays.
Etc.
Without knowing the motivation for your question, it is hard to be more specific in answering.
0 comentarios
Ver también
Categorías
Más información sobre Cell Arrays 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!