In MATLAB, which command can be used in place of 'Jump' Command in C?

2 views (last 30 days)
Jump Command in C is equivalent to which command in MATLAB?

Answers (1)

Guillaume
Guillaume on 21 Apr 2015
With this sort of question, it's a good idea to use correct terms. C does not have commands, it has statements and functions. There is also no jump statement or function in C.
C does have a goto statement. There is not equivalent in matlab (and most modern and not so modern languages) as this method of flow control has been replaced by much clearer and efficient concepts.
C also has setjmp, longjmp functions that are typically used for exception control. The equivalent in matlab would be a try, catch statement.

Categories

Find more on Debugging and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!