I'm not being able to open or save scripts
Show older comments
I am getting an error code (I've attached a picture) whenever I try to open or save a script. I've been trying to learn global variables, and now I can't do anything. Help?

Answers (1)
Steven Lord
on 17 Jan 2019
0 votes
Your function length.m is taking precedent over the built-in length function. Functions that expect to call the built-in function are instead calling your function and it doesn't perform the same way the built-in length function does. You should rename your function.
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!