disp()
The disp() function is used to either display the value on the console or assign the value to a variable.
Syntax : disp(argument)
Parameters :
- argument : can either be a string or a variable
Returns : the string/value printed
Example:
MATLAB
% displaying the value of the console disp( "Hello World!!" ); % assigning the value to a variable output = disp( "Welcome" ); % displaying the assigned variable value disp(output); |
Output :
Hello World!! Welcome
How to output in Octave GNU
Octave is open-source, free available for many of the platforms. It is a high-level language. It comes up with a text interface along with an experimental graphical interface. It is also used for various Machine Learning algorithms for solving various numeric problems. You can say that it is similar to MATLAB but slower than MATLAB.
There are multiple library functions to display an output in Octave.
Contact Us