Commit 310c95cf authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

misc.ss.printSumblk: new latex export method

parent a0c46ed9
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment