Answered Stop MATLAB from print ans, and just display z
Hi Alice, If you don't want to get `ans` variable to be printed in the command window. You can try this code:
function Company(...
bijna 2 jaar ago | 0
Answered How can I put variable equal to zero in loop
Here's a code that sets the symbol 'U1k' to zero in each iteration:
w = input('k=');
for k = 1:w
eval(sprintf('U1%d=0', k...