octave print
disp(myValue);
octave print
disp(myValue);
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us