To get the value of a variable in Matlab, you can use either the disp()
or the fprintf()
function to print the value to the console. For example, if your variable is x
, you can print its value using disp(x)
or fprintf('The value of x is %d\n',x)
.
main.m119 chars4 lines
gistlibby LogSnag