|
|||
Department of Engineering | |
University of Cambridge > Engineering Department > computing help |
% A1, A2, A3, and A4 are created and set to 3 for i=1:4 s=sprintf('A%d= 3',i); eval(s); end; % This shows how to run a command that's stored in a string str=input('Type in a command ','s') eval(str)
| computing help | |