Thanks for the help. 10e-9 is not found in my ber array, it is to be found from the plot. i need to use interpolate i know, but could not. My code is like this: fori=1:length(Nh); forj=1:length(pin_dbm); snr(j)=p(j)/N(j);%p(j) depends on pin_dbm and N(j) de...
mesh(Z) creates a mesh plot and uses the column and row indices of the elements in Z as the x- and y-coordinates. mesh(Z,C) additionally specifies the color of the edges. mesh(___,C) additionally specifies the color of the edges. example mesh(ax,___) plots into the axes specifie...
surf(Z) creates a surface plot and uses the column and row indices of the elements in Z as the x- and y-coordinates. surf(Z,C) additionally specifies the surface color. surf(ax,___) plots into the axes specified by ax instead of the current axes. Specify the axes as the first inp...
For example, plot(G,'Layout','circle') plots a circular ring layout of the graph, and plot(G,'XData',X,'YData',Y,'ZData',Z) specifies the (X,Y,Z) coordinates of the graph nodes. example plot(ax,___) plots into the axes specified by ax instead of into the current axes (gca...
https://ww2.mathworks.cn/products/matlab/plot-gallery.html?s_tid=srchtitle_gallery_1 其中有超超超多优秀绘图案例: 点击launch example甚至可以在线运行例子,优秀! 点击左侧download code可以下载全部代码及数据: 有的程序运行时会提示你没有数据,你下载的文件包内就有一个名为Data Sets的文件夹。把文件夹里...
ph = plot(X,Y); Then you can always extract the data-points from the plot-handle ph: ThemeCopy xGraph = get(ph,'XData'); yGraph = get(ph,'YData'); From there you can display them any whichever way you see fit. However, a lot more can be presented ...
('Click to Select Points, Press Enter When Done'); % Step 2: Manually select points on the plot [x, y] = ginput(); % Click on points, press Enter to finish % Step 3: Get axis limits from user input prompt = {'Enter X-axis minimum value:', 'Enter X-axis maximum value:', ...
surface(Z) creates a primitive surface plot and uses the column and row indices of the elements in Z as the x- and y-coordinates. surface(Z,C) additionally specifies the surface color. surface(ax,___) plots into the axes specified by ax instead of the current axes. Specify the axes ...
PLOT(X,Y,S) where S is a character string made from one element from any or all the following 3 columns: b blue . point-solid g green o circle : dotted r red x x-mark -. dashdot c cyan+ plus --dashed m magenta*star (none) no line ...
[lb,ub,dim,fobj]=Get_Functions_details(Function_name); [Best_score,Best_pos,GWO_cg_curve]=GWO(SearchAgents_no,Max_iteration,lb,ub,dim,fobj); bestoutput = [ycoor(1) Best_pos(1:end) ycoor(end)]; subplot(2,1,1); LineH =plot(xcoor,bestoutput); ...