I am running the following simple live script in Matlab Online:
a = 1
function out = b(o)
out = a + o;
and I get the following error:
I am not sure how to make the function b use the variable a in this scenario. One of my postulations was that this is only a Matlab Online issue, but I can't verify this. I also tried using global a but it did not work.