Please vote if you DO NOT want to have M-function in M-script
2 次查看(过去 30 天)
显示 更早的评论
Vote if you want Mathworks NOT to add this feature.
If you like this feature, please vote on the other post. http://www.mathworks.com/matlabcentral/answers/7690-please-vote-if-you-want-to-have-m-function-in-m-script
If you DON't CARE, you can also vote. http://www.mathworks.com/matlabcentral/answers/7699-please-vote-if-you-don-t-care-to-have-m-function-in-m-script
11 个评论
Andrew Newell
2011-5-18
you cannot catch walter roberson...walter roberson is now matlab answers...if you try to catch him matlab answers will crush you...crush you...crush...
回答(3 个)
Jan
2011-5-18
+1: Better spend the time to improve the GUI objects - continuous slider callbacks, stable UITREE with supported context menu, sortable UITAB, let FIGURE(FigH) move the keyboard focus to the figure as claimed in the documentation (is this solved in 2011a?! It did not work from 5.3 to 2009a...), ComboBox (editable popup menu), stable GETFRAME (no need for PAUSE(0.02) to wait for drawing of Java objects), fix problems with OpenGL renderer (2% of the 2D plots with enabled Box miss the upper border), ...
0 个评论
Walter Roberson
2011-5-18
The only time I use scripts is as temporary scratch-pads, pasting in code from questions in order to see what it does or to debug it. And all that does is save me the trouble of adding a "function" line at the top.
The Programming Theory part of me says that Mathworks should not do this: that instead they should work on allowing MATLAB to be "reflective" like Scheme; see here for more information on Reflection. (Disclaimer: I have met the inventor of Reflection in programming languages, and some of my friends worked directly with him in extending the ideas.)
Jan
2017-1-28
The question is solved by R2016: https://www.mathworks.com/help/matlab/matlab_prog/local-functions-in-scripts.html
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!