Engineering and Scientific Computations Using MATLAB phần 6

Như vậy, hai và ba chiều (như được minh họa sau) âm mưu và phối hợp chuyển đổi được hỗ trợ bởi các lệnh cơ và fbnctions được báo cáo trong bảngcơ bản và đồ thị chức năng và lệnh biểu đồ thanh ngang | Chapter 4 Matlab Graphics 104 To illustrate the plot function and options we have using the Matlab statements t 0 10 y 3in t plot t y rd and t-0 10 y-sin t plot t y k - you calculate he function X - sin and plot the results as documented in Figures and b. a b Figure . Plot of sin The discrete values of t are connected by lines to have continuous function. The discrete and piecewise continuous functions can be plotted. For example the stem function can be used. Figure illustrates the plot for sin r at instances I 2 3. 4. 5 6. 7 8 9. and 10. In particular w e use n l 10 stemtn sin n 1 I--- --- ---- ---- ---- --- ----w---T----- 0 h 0 1 2 3 4 5 6 7 8 9 10 Figure . Plot of sin n Thus two- and three-dimensional as will be illustrated latter plots and coordinate transformations are supported by MATLAB. The basic commands and functions are reported in Tables to . Chapter 4 Matlab Graphics 105 Table . Basic Plots and Graphs Functions and Commands Bar Vertical bar chart Barh Horizontal bar chart Hist Plot histograms Histc Histogram count Hold Hold current graph loglog Plot using log-log scales Pie Pie plot Plot Plot vectors or matrices. Polar Polar coordinate plot semilogx Semi-log scale plot semilogy Semi-log scale plot subplot Create axes in tiled positions Table . Three-Dimensional Plotting Bar3 Vertical 3D bar chart Bar3h Horizontal 3D bar chart Comet3 3D comet plot cylinder Generate cylinder fill3 Draw filled 3D polygons in three-dimensional space plots Plot lines and 3D points in three-dimensional space quiver3 3D quiver or velocity plot Slice Volumetric slice plot sphere Generate sphere Stem3 Plot discrete surface data waterfall Waterfall plot Table . Plot Annotation and Grids clabel Add contour labels to a contour plot datetick Date formatted tick labels grid Grid lines for 2D and 3D plots gtext Place text on a 2D graph using a mouse legend Graph legend for lines and patches plotyy Plot .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.