problem with writing codes in big line numbers

I'm experiencing writing difficulties in big line numbers (apprx 40 000) in editor page. There is a significant latency happening during the writing codes (for example when I push enter it takes 5-10 seconds for reply). It seems that matlab controls the entire codes writing each time. How can I switch off if such a control exist for writing more conveniently in huge line numbers?

4 Comments

Use another editor for data files; the Matlab editor is tied in so closely with Matlab syntax and the GUI debugger, etc., etc., etc., that it has a tremendous amount of overhead as you see.
On the other hand, if your code is over 40,000 lines in the same file, maybe it's time to refactor your code.
Surely, within those 40,000 lines, there must be some code that can be factored out as different functions, each in their own files.
One would think the obvious conclusion is to learn to use functions. MODULARIZE YOUR CODE. Odds are there are some tasks that are done more than once. Even if not, you will find out that code is easier to debug if you can test each piece of it separately.
If you simply cannot do so, then it is definitely time to find another editor. There are lots of them out there, just not quite so highly linked to MATLAB. An m-file is just a text file, so any editor that can handle a text file will suffice.
You could turn off syntax checking if you have it on.

Sign in to comment.

 Accepted Answer

I assume that you work with a log or data file - or possibly some automatically generated m-code.
I use Notead++ for this type of files. It's fast and more.
"Notepad++ is a free (as in "free speech" and also as in "free beer") ... MS Windows environment"

More Answers (0)

Categories

Find more on Files and Folders in Help Center and File Exchange

Tags

Asked:

on 15 Feb 2016

Answered:

on 16 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!