Commit 2ed23e7c authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

misc.Gains.print: minor change

parent 045ef149
......@@ -482,11 +482,13 @@ classdef Gains < handle & matlab.mixin.Copyable
end
plusNeeded = false;
for it = 1 : numel(inputName)
if ~plusNeeded
myString = myString + obj.get(inputName(it)).print(outputType);
plusNeeded = true;
else
myString = myString + " + " + obj.get(inputName(it)).print(outputType);
if any(strcmp(obj.get(inputName(it)).outputType, outputType))
if ~plusNeeded
myString = myString + obj.get(inputName(it)).print(outputType);
plusNeeded = true;
else
myString = myString + " + " + obj.get(inputName(it)).print(outputType);
end
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