I can't understand the following MATLAB code documentation

3 Ansichten (letzte 30 Tage)
Oscar Medina Boone
Oscar Medina Boone am 15 Okt. 2021
Beantwortet: Walter Roberson am 15 Okt. 2021
Im working on a human-robot collaboration project, and I am basing myself from a previous project from my school. I have all its code documentation, but there is one thing about that I do not understand
These lines of code are supposed to be a single program to initiliaze a Scorbot Robot. I do not understand why there is a gap after line 19 and then it starts at line 1 again. Is this a Matlab feature? I dont understand why it is divided like that, maybe I am not understanding the documentation properly?. If anyone knows the reason behind this it would help me a lot.

Antworten (2)

dpb
dpb am 15 Okt. 2021
This isn't documentation, this is actual MATLAB code.
The first section is a script; the second is a function which is called by the script.
Read the MATLAB documentation on scripts and functions.

Walter Roberson
Walter Roberson am 15 Okt. 2021
The implication is that the second part is stored in its own file.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by