Hello,
I do alot of work with symbolic variables and latex, and I would like to have some custom output for when a semi colon is not put at the end of a line, I would like it to output the formated version of the symbolic variable so that I can use the copy as LaTeX. An example of how I would like it displayed is below, when I run the line sigma_i = 10*u.MPa I would like it to be displayed as if I had run myFunc.
sigma_i =10*u.MPa
sigma_i = function myFunc(inputValue)
symbolicVarName = sym(varName);
disp(vpa(symbolicVarName == inputValue, 3));
I have tried creating class MySym which inherits from sym but whenever I do any operations the output ends up being a sym
function obj = MySym(val)
symbolicVarName = sym(varName);
disp(vpa(symbolicVarName == obj, 3));