CI: use variables for chosing MATLAB and Octave versions

3 jobs for master in 4 minutes and 29 seconds (queued for 4 seconds)
latest
Status Name Job ID Coverage
  Test
passed test_matlab #24246

00:00:47

passed test_octave #24248

00:04:27

passed test_old_matlab #24247

00:00:59