I want to use the stats::swGOFT
function in MuPAD. I have a numerical vector called r
. I used
feval(symengine, 'stats::swGOFT', r);
The error was
Error using mupadengine/feval (line 157)
MuPAD error: Error: Some data are of invalid type.
So I tried a more direct way, which worked:
feval(symengine, 'stats::swGOFT', 1,2,3,4);
But this didn't work:
feval(symengine, 'stats::swGOFT', [1,2,3,4]);
My variable r
is a 1146-by-1 double vector. Obviously I can't manually input all the numbers. So, how to pass the vector variable r
to the MuPAD function stats::swGOFT
?