coursera-stanford icon indicating copy to clipboard operation
coursera-stanford copied to clipboard

Submit() script needs to be fixed for MATLAB 2019B

Open dylancis opened this issue 5 years ago • 0 comments

https://github.com/tuanavu/coursera-stanford/blob/f6f8087e3db936e1125ae590edcb6d3f189c1d8b/machine_learning/exercises/matlab/submitWithConfiguration.m#L5

In MATLAB 2019B, you cannot use the same name of variable and function, because the JIT will consider the PARTS as variable and overshadow your function. This change is new for R2019B, please read the Release Note for more information. In anycase use the same name for VARIABLE and FUNCTION is evidently a terrible way of programming (I see the same happens inside the body of PARTS function).

dylancis avatar Oct 13 '19 16:10 dylancis