MATLAB Answers

Ross
0

Modelling A Matlab Project

Asked by Ross
on 16 Feb 2018
Latest activity Edited by Rik
on 1 Oct 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 Comments

Show 1 older comment
Thanks Rik. Yeah I have comments and documentation which I can follow at the moment, I just a spur of the moment thought thinking a picture paints a thousand words as they say, but then realized in practice it might not be possible to implement. Thanks for the quick reply though.
Rik
on 17 Feb 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
on 1 Oct 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.)

Sign in to comment.

1 Answer

Answer by Aveek Podder on 19 Feb 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:

  0 Comments

Sign in to comment.