Illustration of tracing a error, MATLAB in Statistics

Illustration of tracing a error:

The one way of following the flow of function, or tracing it, is to use the echo function. The echo function, that is a toggle, will show each and every statement as it is executed and also the results from the code. For scripts, merely echo can be typed, but for the functions, name of the function should be identified, for illustration,

echo functionname on/off

>> echo testifelse on

>> testifelse(-2)

% This function will test the debugger

if 3 < x < 6

   disp('In middle of range')

In middle of range

end

We can view from this outcome that the action of if clause was executed.

 

 

Posted Date: 10/20/2012 4:23:20 AM | Location : United States







Related Discussions:- Illustration of tracing a error, Assignment Help, Ask Question on Illustration of tracing a error, Get Answer, Expert's Help, Illustration of tracing a error Discussions

Write discussion on Illustration of tracing a error
Your posts are moderated
Related Questions
Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti

Illustration of Indexing into vectors of structures: For illustration, the function to print the information from packages has been modified therefore in addition to the vecto

Run-time or execution-time error: The Run-time, or execution-time, errors are found whenever a script or function is executing. With most of the languages, an illustration of

Logical Built-In Functions: There are built-in functions in the MATLAB which are useful in conjunction with vectors or matrices of all logical true or false values; two of the

Nested Functions: We have seen that the loops can be nested, that means that one inside of the other, functions can be nested. The terminology for nested functions is that an

Nested for Loops: The action of a loop can be any of the valid statement(s). Whenever the action of a loop is the other loop, this is known as nested loop. As an illustrati

Curve Fitting: The data is fundamentally either discrete or continuous. In most of the applications, data is sampled, for illustration, The temperature recorded every ho

Functions which complete a task without returning Values: Most of the functions do not compute values, but instead of accomplish a task like printing formatted output. As thes

fscanf function - file function: The fscanf reads matrix variable mat columnwise from the file specified by fid. The 'format' involves conversion characters much similar to th

Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti