Web18 apr. 2024 · Depending on what you want to do, and if there is only one maximum: Theme Copy x = 0:10; y = - (x-5).^2; [ymax,idx] = max (y); % Maximum Of Dependent Variable & Index figure plot (x, y) hold on plot (x (idx), ymax, '^r') hold off grid ylim ( [min … Web25 nov. 2024 · plot (x,y1); hold on % find max of Ethanol [maxVal,maxIDX] = max (Ethanol); % for single point plotting, use scatter scatter (x (maxIDX), maxVal, 'r*'); % plot max of …
how to set a marker at one specific point on a plot (look at the ...
Web10 mei 2024 · Lets say you have a curve, and you know one point which you want to highlight. Then simply plot that point with different marker. Ex. a = fspecial ('gaussian', … Web30 mei 2012 · This video shows how to put an individual text label on each of a series of points. This video also shows a simple technique for understanding lines of code where there are many functions acting as inputs to other functions. The question was original posted on Stack Overflow by Katie Banks and answered by Amro Category: Format: … fairly et al vs kaiser
Add text descriptions to data points - MATLAB text - MathWorks
Web14 mrt. 2013 · It's just 4 lines of code to call min (), max (), and 2 calls to text (). Theme Copy % Create a sample signal. t = linspace (0.1, 2*pi, 100); % Time axis y = sin (t); plot … Web28 okt. 2014 · One way to do this is to use the GINPUT function to graphically select a point using the mouse. Assuming the data you plotted is stored in a variable data, the … Web24 apr. 2012 · Then simply plot that point with different marker. Ex. Theme Copy a = fspecial ('gaussian', [100 1],0.9); % Gaussian distriubution. plot (a); % you will see Gaussian curve. Now I want to highlight the maximum value. [y x] = max (a); hold on; % hold the plot for other curves plot (x,y,'o','MarkerSize',10); 1 Comment poonam on 8 Jan 2016 fair lakes hyatt