Create a mesh with four variables
Mostrar comentarios más antiguos
Hello,
I've got my x, y and z components which contain four variables. I would like to know if there is a matlab function, similar to meshgrid, which creates a 4^n x 4^n matrix.
Thank you
Ben
Respuesta aceptada
Más respuestas (1)
kawak
el 6 de Ag. de 2012
0 votos
2 comentarios
Honglei Chen
el 6 de Ag. de 2012
Editada: Honglei Chen
el 6 de Ag. de 2012
Hi Kawak,
You are not reading the result correctly. For example, X1 here is a 4-dimensional array. So to look for a given point, you need to find the corresponding element in each of these four matrices. For example
>> [X1(1,1,1,1) X2(1,1,1,1) X3(1,1,1,1) X4(1,1,1,1)]
ans =
0 0 0 0
kawak
el 6 de Ag. de 2012
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!