std function won't execute
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Priyansh Arya
le 12 Nov 2020
Commenté : Priyansh Arya
le 12 Nov 2020
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.
0 commentaires
Réponse acceptée
Ameer Hamza
le 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
which std
It will show you the path to file that is shadowing std(). Rename the file to something else.
Plus de réponses (1)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!