From: Yasir Soobiah on 5 Jun 2010 12:15 Please could someone let me know how I can save 3-d double arrays from a mat file to -V4 file or ascii file so I can read the data to IDL programs? I would like to use the IDL function load_mat_data file from ftp://ion.le.ac.uk/idl/, to read mat file data but is only compatible with V4 files. Unfortunately my contract does not allow enough time to learn MATLAB programming (which I would love to do) also as I rely on my own IDL software from the last six years, so I would extremely appreciate the help. Many thanks, Yas
From: Walter Roberson on 5 Jun 2010 12:24 Yasir Soobiah wrote: > Please could someone let me know how I can save 3-d double arrays from a > mat file to -V4 file or ascii file so I can read the data to IDL programs? I suggest you reshape() the array in to a 2D array before saving, and then re-arrange appropriately on the IDL side. For example, reshape(A, size(A,1)*size(A,2), []) I used to use IDL but have not for years, and now do not recall which dimension varies most quickly. It is possible that it would be easiest on the IDL side if you permute()'d the array before saving.
|
Pages: 1 Prev: moving average code going slow Next: Colorize classes in an image |