Skip to content

Commit

Permalink
Improved checking of out.Un
Browse files Browse the repository at this point in the history
If field Un in input structure is present it is not deleted
  • Loading branch information
MarcoRianiUNIPR committed Jun 19, 2023
1 parent 035e7f0 commit cc93b14
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions graphics/resfwdplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -1128,15 +1128,18 @@
if any(strcmp(fieldnames(out),'class'))
if strcmp(out.class,'MMregeda')
x=out.eff;
out.Un='';
% out.Un='';
elseif strcmp(out.class,'Sregeda')
x=out.bdp;
out.Un='';
% out.Un='';
elseif strcmp(out.class,'MDPDReda')
x=out.bdp;
% out.Un='';
end
% If field Un does not exist then it is initialized with empty
if ~isfield(out,'Un')
out.Un='';
end

end

plot1=plot(x,residuals,'tag','data_res','LineWidth',standard.LineWidth);
Expand Down

0 comments on commit cc93b14

Please sign in to comment.