Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LRT_infinite_dimensional_systems
conI
Commits
310c95cf
Commit
310c95cf
authored
Oct 07, 2020
by
Jakob Gabriel
Browse files
misc.ss.printSumblk: new latex export method
parent
a0c46ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
+misc/+ss/printSumblk.m
0 → 100644
View file @
310c95cf
function
texStringFinal
=
printSumblk
(
thisSumblk
,
NameValue
)
%PRINTSUMBLK creates a string containing latex syntax description of a sumblk ss block ase on
%sumblks parameter D, OutputName, InputName.
arguments
thisSumblk
ss
;
NameValue
.
subscript
=
false
;
end
thisOutputName
=
string
(
misc
.
ss
.
removeEnumeration
(
thisSumblk
.
OutputName
,
true
));
thisInputName
=
string
(
misc
.
ss
.
removeEnumeration
(
thisSumblk
.
InputName
,
true
));
if
NameValue
.
subscript
thisOutputName
=
extractBefore
(
thisOutputName
,
2
)
+
"_{"
+
extractAfter
(
thisOutputName
,
1
)
+
"}"
;
thisInputName
=
extractBefore
(
thisInputName
,
2
)
+
"_{"
+
extractAfter
(
thisInputName
,
1
)
+
"}"
;
end
texString
=
misc
.
latexChar
(
thisOutputName
+
"(t)"
)
...
+
" &= "
+
misc
.
latexChar
(
thisSumblk
.
D
)
...
+
" "
+
misc
.
latexChar
(
thisInputName
+
"(t)"
);
if
nargout
<
1
misc
.
printTex
(
texString
,
"align"
,
false
);
else
texStringFinal
=
texString
;
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