Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
844cbac2
Commit
844cbac2
authored
Apr 05, 2013
by
Marco Ratto
Browse files
fixed output argument as a proper char matrix for both unix and windows OS.
parent
8de02041
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/parallel/dynareParallelDir.m
View file @
844cbac2
...
...
@@ -47,6 +47,12 @@ for indPC=1:length(Parallel),
end
if
check
~=
0
||
~
isempty
(
strfind
(
ax
,
'No such file or directory'
));
ax
=
[];
else
indax
=
regexp
(
ax
,
'\n'
);
colax
=
indax
(
1
);
rowax
=
length
(
indax
);
ax
=
reshape
(
ax
',[colax rowax])'
;
ax
=
ax
(:,
1
:
end
-
1
);
end
else
...
...
@@ -67,7 +73,6 @@ for indPC=1:length(Parallel),
end
end
dirlist
=
char
(
dirlist
,
ax
);
else
if
exist
(
'OCTAVE_VERSION'
),
% Patch for peculiar behaviour of ls under Windows.
if
Parallel
(
indPC
)
.
Local
==
0
,
...
...
@@ -92,6 +97,10 @@ for indPC=1:length(Parallel),
ax
=
ls
(
filename
);
end
end
end
if
isempty
(
dirlist
),
dirlist
=
ax
;
elseif
~
isempty
(
ax
),
dirlist
=
char
(
dirlist
,
ax
);
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment