What are the thought processes that go on when you are trying to solve a MATLAB problem?
Mostra commenti meno recenti
I am (fairly) new to MATLAB, just started using it more heavily these past few months (before then I just used it to make basic plots). So when I have an issue I typically spend hours on just the (seemingly) simplest things such as how to remove certain values from structures and how to improve image quality for image analysis etc...
I just wanted to know if there is a particular thought process that you (everyone) go though before finding a solution to your exact problem. This might sound like a pretty dumb question but I think maybe learning about how other people tackle code related problems may be able to help me add good habits to what I do and make me improve.
Thanks
2 Commenti
There are plenty of methods, processes, and approaches to help write code, which I am sure that an internet search will help you with.
"I typically spend hours on just the (seemingly) simplest things such as how to remove certain values from structures..."
As long as you spend those hours reading the documentation and trying examples, then that is a normal and productive way to learn how to write code. No one (with the possible exception of Donald Knuth) was born knowing how to write code. It has to be learned. And that takes time and reading the documentation. A lot.
Personally I think that one of the hardest parts to code writing is learning the names of things: if you do not know what a thing is named then searching for its documentation or explanation can be very difficult. Reading as much as possible is one remedy, or by taking part some structured learning (e.g. online/MOOC courses).
Tip: do not underestimate the data design! Good data organisation leads to much better code. A clear and logical organisation of data will make the rest of the code exponentially simpler and more efficient. As a general rule of thumb, leave data together as much as possible.
Manny Kins
il 2 Mag 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Common Operations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!