## [Vxl-users] 3D matrices

 [Vxl-users] 3D matrices From: Andrea Cutti - 2003-01-20 23:33:48 Attachments: Message as HTML ```Hi everybody, =20 can someone help me with the following problem? :-) I need to use 3D matrices (matrices with 3 indices), like those in = MATLAB. A predefined class in VNL doesn't exist so I'm using a vcl_vector of vnl_matrix. Now the problem is that I would like to save these vcl_vector of = vnl_matrix in a *.mat file as three dimensional MATLAB matrices. Can you suggest me how to do that? Do you have a more efficient implementation of 3D matrices (average dimension: 50x50x2000 double) ? Many many thanks Andrea ```

 [Vxl-users] 3D matrices From: Andrea Cutti - 2003-01-20 23:33:48 Attachments: Message as HTML ```Hi everybody, =20 can someone help me with the following problem? :-) I need to use 3D matrices (matrices with 3 indices), like those in = MATLAB. A predefined class in VNL doesn't exist so I'm using a vcl_vector of vnl_matrix. Now the problem is that I would like to save these vcl_vector of = vnl_matrix in a *.mat file as three dimensional MATLAB matrices. Can you suggest me how to do that? Do you have a more efficient implementation of 3D matrices (average dimension: 50x50x2000 double) ? Many many thanks Andrea ```
 Re: [Vxl-users] 3D matrices From: Peter Vanroose - 2003-01-21 08:59:15 ```> I need to use 3D matrices (matrices with 3 indices), like those in MATLAB. A > predefined class in VNL doesn't exist so I'm using a vcl_vector of > vnl_matrix. You could instead use the class vbl_array_3d for this purpose. -- Peter. ```
 RE: [Vxl-users] 3D matrices From: Geoffrey Cross - 2003-01-21 09:43:28 Attachments: Message as HTML ```To save as a strict .mat file (as opposed to ascii, which I don't think supports 3D matrices), you're going to have to link against matlab. There have been various posts recently on this mailing list about how to do that. However: Given the recent requests for this, and the fact that I volunteered a while ago to do some matlab-vxl stuff, I'm going to volunteer to write this over the weekend and submit it. Can whoever said they had written a FindMatlab.cmake script please send me a copy? Geoff. -----Original Message----- From: vxl-users-admin@... [mailto:vxl-users-admin@...] On Behalf Of Andrea Cutti Sent: Monday, January 20, 2003 11:34 PM To: vxl-users@... Subject: [Vxl-users] 3D matrices Hi everybody, can someone help me with the following problem? :-) I need to use 3D matrices (matrices with 3 indices), like those in MATLAB. A predefined class in VNL doesn't exist so I'm using a vcl_vector of vnl_matrix. Now the problem is that I would like to save these vcl_vector of vnl_matrix in a *.mat file as three dimensional MATLAB matrices. Can you suggest me how to do that? Do you have a more efficient implementation of 3D matrices (average dimension: 50x50x2000 double) ? Many many thanks Andrea ```