netcelli / adcptools

Automatically exported from code.google.com/p/adcptools
GNU General Public License v3.0
2 stars 0 forks source link

readDeployment fails on folders containing deployment files having file names of different length #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run readDeployment on a folder containing files where the file name has a 
different length of characters

What is the expected output? What do you see instead?

Reading ADCP raw data files...
Error using vertcat
Dimensions of matrices being concatenated are not consistent.

Error in readDeployment (line 35)
    rfiles=vertcat(rfiles2(:).name);

Error in preload (line 5)
A = readDeployment(iname,folder);

35      rfiles=vertcat(rfiles2(:).name);

What version of the product are you using? On what operating system?

Rev 20

Please provide any additional information below.

This can be easily fixed by not using vertcat and a matrix but a cell array, as 
it should always be with strings.

Original issue reported on code.google.com by kastner....@gmail.com on 4 Mar 2014 at 10:06