How can I change a certain part of a graph to a certain constant value?
3 views (last 30 days)
For example, this is a sine graph.
x = linspace(0,2*pi,100);
y = sin(x);
How to change the value of y to be y = sin(0.2*pi) at x = 0.2*pi to 0.8*pi? so that the graph appears to be sine graph, except it is a horizontal straight line from x = 0.2*pi to 0.8*pi.
Thank you in advance.