diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index 65ccf678..c0280498 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -47,9 +47,9 @@ jobs: command: | mex('-setup', '-v', 'C'); cd('wrappers/matlab/'); - fnames = struct2table(dir('*.cpp')).name; + fnames = cell2mat(struct2table(dir('*.cpp')).name); for i = 1:length(fnames) - fname = fnames(i){1,1} + fname = fnames(i) fprintf('Compiling %s...\n', fname) mex('-v', fname, '-I./', '-L${{github.workspace}}/install', '-lmoordyn'); end