function dir = test_lsq_create_dir(dir)
fprintf(2,'creating folder %s\n',dir);
system(sprintf('mkdir -p %s',dir));