MATLAB: Printing original matrix after loop

displayfor loopmatrixprint

I made a uniformly distributed random matrix, then ran it through a loop to replace all numbers less than 0.34 with -1. After the loop is complete, I want to print both the original matrix, and the modified matrix after the loop with a disp command. I can print the modified matrix but how do I print the original from before the loop?

Best Answer

You need to save a copy of the original in order to print it afterwards.