Hi Elizabeth,
I ran the two lines of code you provided below, and they didn't throw any errors for me.
[Z,gpamean,gpastdev] = zscore(gpa)
Additionally check:
- Ensure that there is no custom implementation of mean that is overshadowing the built-in MATLAB function. You can check this by running:
- It's possible that your MATLAB path is altered and causing the issue. You can restore the default MATLAB path by executing:
- Try running your script in a clean MATLAB session without any additional toolboxes or custom scripts loaded.
Hope this helps!