From 55f18d30c3f6f3f9350a68a4b8c13c28f47d0fbc Mon Sep 17 00:00:00 2001
From: Thomas Lambert <t.lambert@uliege.be>
Date: Fri, 25 Nov 2022 21:30:14 +0100
Subject: [PATCH] fix(formatairfoil): issue with autosave

Signed-off-by: Thomas Lambert <t.lambert@uliege.be>
---
 +af_tools/formatairfoilcoord.m | 2 +-
 CHANGELOG.md                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/+af_tools/formatairfoilcoord.m b/+af_tools/formatairfoilcoord.m
index 78273d8..77d3b44 100644
--- a/+af_tools/formatairfoilcoord.m
+++ b/+af_tools/formatairfoilcoord.m
@@ -158,7 +158,7 @@ function Dat = formatairfoilcoord(varargin)
                 filename = [filename{1}, '-', outputFormat];
             end
             filename = appendextension(filename, '.dat');
-            filename = fullfile(Dat(i).path, filename);
+            filename = string(fullfile(Dat(i).path, filename));
             header = Dat(i).airfoil;
             savetodat(filename, header, Dat(i).array);
         end
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8ef1d75..0601b31 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,8 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Fixed
 
+- **formatairfoilcoord**: fix issue with autosave
 - **xf2mat**: add error when input is not a proper xfoil/xflr5 result
-
 - **plotpolar**: fix issue when unavailable data
 
 ## [4.0.0] - 2022-06-09
-- 
GitLab