From 07902d71a069aab9a1275be6a827c5f2de3e86d7 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Thu, 24 Oct 2024 07:17:11 +0200 Subject: [PATCH] Incorrect cell indexing --- .github/workflows/matlab.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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