Skip to content
Snippets Groups Projects
Verified Commit bd14c019 authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

perf: replace exist checks

parent 7ede5070
No related branches found
No related tags found
No related merge requests found
Pipeline #8770 passed
......@@ -102,17 +102,17 @@ function plotsinglepolar(dataX, dataY, fTitle, fXlabel, fYlabel)
if ~isempty(dataX) && ~isempty(dataY)
if ~exist('fTitle', 'var')
if nargin < 3
fTitle = '';
end
figure('PaperUnits', 'inches', 'PaperPosition', [0 0 1280 1024] / 250, 'Name', fTitle);
plot(dataX, dataY);
if exist('fXlabel', 'var')
if nargin >= 4
xlabel(fXlabel);
end
if exist('fYlabel', 'var')
if nargin >= 5
ylabel(fYlabel);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment