MATLAB Language Debugging

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • dbstop in file at location if expression

Parameters

ParameterDetails
fileName of .m file (without extension), e.g. fit. This parameter is (Required) unless setting special conditional breakpoint types such as dbstop if error or dbstop if naninf.
locationLine number where the breakpoint should be placed. If the specified line does not contain runnable code, the breakpoint will be placed on the first valid line after the specified one.
expressionAny expression or combination thereof that evaluates to a boolean value. Examples: ind == 1, nargin < 4 && isdir('Q:\').


Got any MATLAB Language Question?