Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d4b72e0a authored by ADAM's avatar ADAM
Browse files

made sure writeTextFile works in older versions of Matlab

parent 9af4017d
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ else ...@@ -24,7 +24,7 @@ else
end end
%% write the text to the file %% write the text to the file
if fid~=-1 if fid~=-1
text = strjoin(Text,'\r\n'); text = strjoin(Text(:).','\r\n');
fwrite(fid,text); fwrite(fid,text);
else else
error('cannot open the file to read'); error('cannot open the file to read');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment