function plotIterationsOverGamma(gamma, iterations, plot_title, filename) % 3D plots a function % fun: The points to plot % contur_fun: The function for contour plot % x_lim: The range for x axis. ex: [-2, 2] % y_lim: The range for y axis. ex: [0, 2] % size: The number of points for each axis % plot_title: The latex title for the plot % filename: The filename to save the plot (if exists) % figure('Name', 'Iterations_over_gamma', 'NumberTitle', 'off'); set(gcf, 'Position', [100, 100, 960, 960]); % Set the figure size plot(gamma, iterations, '*r', 'LineWidth', 2); title(plot_title, 'Interpreter', 'latex', 'FontSize', 16); % Title of the plot xlabel('\gamma') ; ylabel('Iterations'); print(gcf, filename, '-dpng', '-r300'); end