How can I explain below matlab code to someone each line?
Afficher commentaires plus anciens
handles.output=hObject;
[a b]=uigetfile({'*.*'});
img=imread({b a})
gravy=rgb2gray(img);
gr=graythresh(grayy);
handles.bw=im2bw(grayy,gr);
imshow(img,'parent',handles.axes1);
guidata(hObject,handles);
4 commentaires
Saktheeswaran Mohan
le 6 Juil 2021
That depends on whom you would like to explain this code and their proficiency in Matlab.
I would suggest starting with the documentation of each function.
This time I edited your question for you. Next time, please use the tools explained on this page to make your question more readable.
Saktheeswaran Mohan
le 6 Juil 2021
Walter Roberson
le 6 Juil 2021
I could probably write at least two textbooks to explain the meaning of that code line by line. Maybe more, as you cannot really understand the lines without studying the nature of reality, so you pretty much have to refer to "Plato's Cave", and to Peano's studies on the meaning of arithmetic and Proof, and to Goëdel's Incompleteness Theorem, and Turing's Finite Automata and The Halting Problem... and of course the problem of Quantum Mechanics and The Many Worlds Hypothesis.
Because of this, I refuse to even start explaining anything line by line. If someone wants something explained, they can ask specific questions.
Réponses (0)
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!