- #1
matematikawan
- 338
- 0
I get this example from >>help eval
and add a semicolon.for n = 1:12
eval(['M' num2str(n) ' = magic(n)']);
end
The above commands display all 12 magic square. How do I suppress the output? I only want MATLAB to assign the variables not display them.
and add a semicolon.for n = 1:12
eval(['M' num2str(n) ' = magic(n)']);
end
The above commands display all 12 magic square. How do I suppress the output? I only want MATLAB to assign the variables not display them.
Last edited: