Example 1
Create a script file and type the following code:
fprintf('value of a: %d\n', a);
end
When you run the file, it displays the following result:
value of a: 11
value of a: 12
value of a: 13
value of a: 14
value of a: 15
value of a: 16
value of a: 17
value of a: 18
value of a: 19
value of a: 20
No comments:
Post a Comment