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
Johannes Pfeifer
dynare
Commits
2e231561
Commit
2e231561
authored
Sep 09, 2013
by
Stéphane Adjemian
Browse files
Fixed bug (conversion of variable names in tex).
(cherry picked from commit
80218a1b
)
parent
f337c2b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/general/name2tex.m
View file @
2e231561
...
...
@@ -25,15 +25,8 @@ end
if
iscell
(
name
)
nn
=
length
(
name
);
id
=
findstr
(
cell2mat
(
transpose
(
name
)),
'_'
);
else
nn
=
1
;
id
=
findstr
(
name
,
'_'
);
end
if
isempty
(
id
)
tex
=
name
;
return
end
if
iscell
(
name
)
...
...
@@ -51,6 +44,9 @@ for i=1:nn
id
=
findstr
(
name
,
'_'
);
len
=
length
(
tex
);
end
if
isempty
(
id
)
continue
end
n
=
length
(
id
);
if
id
(
1
)
==
1
if
iscell
(
name
)
...
...
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