Answers for "octave printf"

0

octave print

disp(myValue);
Posted by: Guest on January-25-2021
0

octave printf

# disp() can only display String or values one at a time and prints a new line
# printf() can display String with values in a consecutive order
# example
I=1;
i=1;
printf("The matrix entry M(%d,%d) is greater then 1.\n",i,I)
# outcome
# The matrix entry M(1,1) is greater then 1.
#
# use ( %d ) for the printf() to replace it with the values at the end
# and printf() doesn't start a new line at end
Posted by: Guest on October-01-2021

Browse Popular Code Answers by Language