Function Reference: Volume 1 (A-E) - The MathWorks - #951

/ 1298


catalogue search
P. 951
P. 952
P. 953
P. 954
P. 955
P. 956
P. 957
P. 958
P. 959
P. 960
P. 961
P. 962
P. 963
P. 964
P. 965
P. 966
P. 967
P. 968
P. 969
P. 970
P. 971
P. 972
P. 973
P. 974
P. 975
P. 976
P. 977
P. 978
P. 979
P. 980
P. 981
P. 982
P. 983
P. 984
P. 985
P. 986
P. 987
P. 988
P. 989
P. 990
P. 991
P. 992
P. 993
P. 994
P. 995
P. 996
P. 997
P. 998
P. 999
P. 1000


See other catalogues for The MathWorks

Text version of the page
dbstop
produce
??? Error using ==> ./
Matrix dimensions must agree.
Error in ==> c:\buggy.m
On line 3 ==> z = (1:n)./x;
K>>
and put MATLAB in debug mode. Stop if InfNaN
In buggy, if any of the elements of the input x is zero, a division by zero occurs. The statements
dbstop if naninf buggy(0:2)
produce
Warning: Divide by zero. > In c:\buggy.m at line 3
K>>
and put MATLAB in debug mode. Stop at Function in File
In this example, MATLAB stops at the newTemp function in the M-file yearlyAvgs:
dbstop in yearlyAvgs>newTemp
Stop at Non M-File
In this example, MATLAB stops at the built-in function clear when you run myfile.m.
dbstop in clear; myfile MATLAB issues a warning, but permits the stop:
2-825

pageCatalog pdf di En 2012-06-22-01