TAILIEUCHUNG - ElectrCircuitAnalysisUsingMATLAB Phần 2

MATLAB has built-in functions that allow one to generate bar charts, x-y, polar, contour and 3-D plots, and bar charts. MATLAB also allows one to give titles to graphs, label the x- and y-axes, and add a grid to graphs. In addition, there are commands for controlling the screen and scaling. Table shows a list of MATLAB built-in graph functions. One can use MATLAB’s help facility to get more information on the graph functions. Table Plotting Functions FUNCTION axis bar contour ginput grid gtext histogram hold loglog mesh meshdom pause plot polar semilogx semilogy shg stairs text title. | Attia John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton CRC Press LLC 1999 1999 by CRC PRESS LLC CHAPTER TWO PLOTTING COMMANDS GRAPH FUNCTIONS MATLAB has built-in functions that allow one to generate bar charts x-y polar contour and 3-D plots and bar charts. MATLAB also allows one to give titles to graphs label the x- and y-axes and add a grid to graphs. In addition there are commands for controlling the screen and scaling. Table shows a list of MATLAB built-in graph functions. One can use MATLAB s help facility to get more information on the graph functions. Table Plotting Functions FUNCTION DESRIPTION axis freezes the axis limits bar plots bar chart contour performs contour plots ginput puts cross-hair input from mouse grid adds grid to a plot gtext does mouse positioned text histogram gives histogram bar graph hold holds plot for overlaying other plots loglog does log versus log plot mesh performs 3-D mesh plot meshdom domain for 3-D mesh plot pause wait between plots plot performs linear x-y plot polar performs polar plot semilogx does semilog x-y plot x-axis logarithmic semilogy does semilog x-y plot y-axis logarithmic shg shows graph screen stairs performs stair-step graph text positions text at a specified location on graph title used to put title on graph xlabel labels x-axis ylabel labels y-axis 1999 CRC Press LLC X-Y PLOTS AND ANNOTATIONS The plot command generates a linear x-y plot. There are three variations of the plot command. a plot x b plot x y c plot x1 y1 x2 y2 x3 y3 . xn yn If x is a vector the command plot x will produce a linear plot of the elements in the vector x as a function of the index of the elements in x. MATLAB will connect the points by straight lines. If x is a matrix each column will be plotted as a separate curve on the same graph. For example if x 0 then plot x results in the graph shown in Figure . If x and y are vectors of the .

TỪ KHÓA LIÊN QUAN
Đã 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.