Difference between disp and fprintf

For disp, it displays the value of variable. For example Another example. Note, ‘example’ can be seen as a variable Reference: https://www.mathworks.com/help/matlab/ref/disp.html For fprintf, if you are talking about displaying to the screen, the format is fprintf(formatSpec,A1,…,An) formats data and displays the results on the screen. The difference to disp is that it doesn’t display … Read more