Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
readwriteTextFile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
COOMAN Adam
readwriteTextFile
Commits
d4b72e0a
Commit
d4b72e0a
authored
7 years ago
by
ADAM
Browse files
Options
Downloads
Patches
Plain Diff
made sure writeTextFile works in older versions of Matlab
parent
9af4017d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
writeTextFile.m
+1
-1
1 addition, 1 deletion
writeTextFile.m
with
1 addition
and
1 deletion
writeTextFile.m
+
1
−
1
View file @
d4b72e0a
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment