lettura simple

Executing Commands without Output in Octave

Each command executed on Octave displays information on the command window.

For example, when you declare a variable, the assignment is written again:

>> test=5
test = 5
>>

This can become a problem, especially when you perform thousands of operations in a script.

Every output displayed on the prompt requires time and memory, making script execution slower and requiring more PC memory.

How do you solve the problem?

On Octave, you can execute commands without displaying output information by adding a semicolon at the end of the command:

>> test=5;
>>

When Octave finds the semicolon at the end of the command, it processes the command without displaying any information on the command window.

This tip is particularly useful when writing a script.

If this short lesson on Octave by Nigiara has helped you, please continue to follow us.




Report a mistake or post a question




FacebookTwitterLinkedinLinkedin