
V đ th trong Matlab
139
lượt xem 15
download
lượt xem 15
download

2/9/2010 V đ th trong Matlab ntnhut@hcmus.edu.vn 1 Đ TH 2D Lệnh plot plot(x,f(x)) Với: f(x) - hàm số cần vẽ x – vectơ miền giá trị của hàm f ntnhut@hcmus.edu.vn 2 1 2/9/2010 Ví d hàm plot Vẽ đồ thị của hàm y = sin(x) x = 0:pi/100:2*pi; y = sin(x); plot(x, y) ntnhut@hcmus.edu.vn 3 ntnhut@hcmus.edu.vn 4 2 2/9/2010 Tham s đư ng nét c a đ th plot(x,y,’LinestyleMarkerColor’) Linestyle (nét v ) ‘-’ ‘--‘ ‘:’ ‘-.’ ntnhut@hcmus.edu.vn 5 Marker (ñánh d u nét v ) ‘+’ ‘o’ ‘*’ ‘.’ ‘s’/‘square’ ‘d’/‘diamond’ ‘p’/‘pentagram’ + * ‘h’/‘hexagram’ ^ v . x = 0:pi/20:2*pi; plot(x,...
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!

CÓ THỂ BẠN MUỐN DOWNLOAD