Basically for some points say
x = 1:1:100; y = x;
plot(x,y);
how can i for example add 1 for x values between 10 and 20.
i tried
if x >10 & x <20;x1 = x+1;end
plot(x1,y)
but it doesnt seem to make a variable, but i dont get an error either
Best Answer