MATLAB: How to avoid error “Maximum recursion limit of 500 reached” in meshgrid command

meshgrid command errorrecursion error

Im facing "Maximum recursion limit of 500 reached" error in meshgrid command.
The command line is as follows: [Mach,height] =meshgrid(0:0.01:2.4,0:5000:65000);
I've been running the same program with the same loop size and it has run around 10, 15 times just fine until yesterday. Please let me know if anyone can at least identify the problem let alone give a solution about the issue my MATLAB/ computer might be facing?

Best Answer

You accidentally named one of your own files meshgrid.m
Related Question