based on FT23-Ultra script. fixed for FT24 and FT25

This commit is contained in:
2025-05-15 19:59:14 +02:00
commit a81abc2695
25 changed files with 1195 additions and 0 deletions

21
assets/savePlot.m Normal file
View File

@ -0,0 +1,21 @@
function [outputArg] = savePlot(figure,path,format)
switch format
case "png"
savepath = sprintf("%s.png",path);
exportgraphics(figure,savepath);
case "pdf"
savepath = sprintf("%s.pdf",path);
exportgraphics(figure,savepath,'ContentType','vector');
case "fig"
saveas(figure,path,"fig");
case "m"
saveas(figure,path,"m");
otherwise
error("invalid filetype");
end
% return null (not relevant for plots!)
outputArg = [];
end