mirror of
https://github.com/eddyem/lectures.git
synced 2025-12-06 10:45:09 +03:00
6 lines
70 B
Matlab
6 lines
70 B
Matlab
if(!exist("x", "var"))
|
|
x = [0:0.1:2*pi];
|
|
endif
|
|
y = cos(x);
|
|
plot(x,y);
|