x = [0 : 10]; % Generates an interval between 0 and 10 with an increment of 1. x = 0 : 10; % works too. x = [0 : 0.01 : 1]; %Generates an interval between 0 and 10 with an increment of 0.01. x = 0 : 0.01 : 1; % works too. plot(x, sin(x), x, cos(x)); %Plots the graphs of sin(x) and cos(x).
x = linspace(0, 10, 6) % Generates 6 points from 0 to 10. plot(x, sin(x), x, cos(x)); %Plots the graphs of sin(x) and cos(x).
f1=@(x) x^2-x +1 ; f2=@(x,y) x^2-3*y + x*y; f1(5) f2(4,5) |
| (1) |
| (2) |
| (3) |
| (4) |
| (5) |
| (6) |
| (7) |
| (8) |
| (9) |
| (10) |
| (11) |
| (12) |
| (13) |
| (14) |
| (15) |
| (16) |
| (17) |
| (18) |
| (19) |
| (20) |
| (21) |
|
|
|
|
|