can i somehow get the connections and dependencies involving several scripts ?
Show older comments
hi,
i have a skript in my hands, that uses of around 50 selfmade functions. my problem is, that many of them have near a dozen inputs as well as outputs, which makes it real hard to track something down or so. i wondered if there is something, that shows me all the functions, and the dependencies, also the inputs, where they come from and where the outputs go to.
now i do know about projects, but as far as i have seen it, i can only make the dependencies visible, not the outputs and inputs.
thanks in advance for any advice :D
5 Comments
Cris LaPierre
on 14 Nov 2023
Have you looked into the program (not project) dependency report?
Harald
on 14 Nov 2023
Hi Andre,
a long-term thought may be whether you could try to organize these inputs and outputs in a nice way. I am thinking of structs or, beyond that, an object-oriented programming approach. This particular makes sense if you have functions that have the same or at least quite comparable sets of inputs and outputs.
Best wishes,
Harald
Andre
on 15 Nov 2023
Harald
on 15 Nov 2023
Hi Andre,
those already are all structs or tables
Structs are hierarchical in the sense that the fields of a struct can again contain a struct, a table... actually anything. Thus if you find the same set of structs / tables being used repeatedly, combining these into a struct (or object) may help.
the only thing wleft would be an object oriented approach, which i do lack the skills of. i just cant get it into my head xD
I may be able to help with that. :) There is the free self-paced Object-Oriented Programming Onramp which gives a first introduction to object-oriented programming with MATLAB and may already help with some concepts. Beyond that, there is a 2-day instructor-led training offering Object-Oriented Programming with MATLAB. I am actually one of the instructors who deliver this training, so we might see each other there. :)
Best wishes,
Harald
Andre
on 16 Nov 2023
Accepted Answer
More Answers (0)
Categories
Find more on Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!