std function won't execute
2 views (last 30 days)
Whenever I'm using std function to calculate the standatd deviation, it is showing "Attempt to execute SCRIPT std as a function:". The error is only being displayed while using std function, and not with other functions.
Ameer Hamza on 12 Nov 2020
This means that you have created a file named 'std.m' in MATLAB path, which is shadowing MATLAB's builtin std() function. You can run the following line
It will show you the path to file that is shadowing std(). Rename the file to something else.