Clear Filters
Clear Filters

curve shifting on horizontal axis

8 views (last 30 days)
Hello everyone,
I need to shift curves in steps of 10 on x axis to left or right based on the reference value(curve),
ie; all the values below the reference value must be substracted by 10(1st curve), 20 (2nd curve), 30..... in the same way i need to add 10(1st curve), 20 (2nd curve), 30..... for all the values above reference value .
note : there are 49 curves and and each curve has 12 data values(points) of x coordinates .
thanks in advance.

Accepted Answer

Matt J
Matt J on 17 Apr 2021
Edited: Matt J on 18 Apr 2021
For example,
x=linspace(-pi,pi,1000);
y=exp(x);
plot(x(:)+(0:5)*10,y);
axis([0,100,0,10]); legend

More Answers (0)

Categories

Find more on Curve Fitting Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!