Hi Aaron,
To emphasize points that meet your specified condition in a plot, you can utilize a different marker.
The following code snippet illustrates how to achieve this:
% rest of the code
% Identify and plot points where y falls within the specified range
for i = 1:length(x)
if y(i) >= g && y(i) <= h % Adjust the condition according to your requirements
plot(x(i), y(i), 'ro', 'DisplayName', 'Points Near Zero'); % This will display the points with a red circle
disp(['x = ', num2str(x(i)), ', y = ', num2str(y(i))]);
end
end
For more details, please refer to the following MathWorks documentation: plot - https://www.mathworks.com/help/matlab/ref/plot.html#:~:text=plot(X%2CY%2CLineSpec)%20creates%20the%20plot%20using%20the%20specified%20line%20style%2C%20marker%2C%20and%20color.
Hope this helps!