Modelling A Matlab Project

3 visualizaciones (últimos 30 días)
Ross
Ross el 16 de Feb. de 2018
Editada: Rik el 1 de Oct. de 2018
Hello.
I have recently written a Matlab project which basically just contains a lot of different mathematical functions/processes, however it can be difficult to read/follow at times and in future work, expanding will most likely add to the complexity. I therefore had a thought about trying to model the project somehow; at first I tried using Simulink and the Matlab function blocks to better represent the flow of data, however I ran into several problems i.e. unable to parse strings, cells, calling external functions etc.
Does anyone have any suggestions as to possible ways to create models from existing code in a way to be more user friendly to follow the flow of data?
Many Thanks,
Ross
  4 comentarios
Rik
Rik el 17 de Feb. de 2018
I once had a teacher for a basic Java programming course that had a very strong opinion that programming should start with drawing a flowchart. He even went so far that he would rather hand in his computer than his whiteboard. So, absolutely, a picture can clarify a lot, but in this case I would use the flowchart for the actual programming. Good luck, and have fun with your project :)
Rik
Rik el 1 de Oct. de 2018
Editada: Rik el 1 de Oct. de 2018
(I do think this question is appropriate for this website, even without a definite answer. Closing it will prevent people from seeing this and makes it impossible for people in the future to add their thoughts. Consensus might move in the future as well, hence my reopening of the question. If you want to I can move my comment to the answer section so you can accept it (or you could accept the answer by aveek or add your own), but I don't think a single accepted answer is the best strategy for this topic.)

Iniciar sesión para comentar.

Respuestas (1)

Aveek Podder
Aveek Podder el 19 de Feb. de 2018
Hi,
Stateflow is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and flow charts. Stateflow lets you combine graphical and tabular representations, including state transition diagrams, flow charts, state transition tables, and truth tables, to model how your system reacts to events, time-based conditions, and external input signals.
Please have a look at the following link:

Categorías

Más información sobre Naming Conventions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by