curve shifting on horizontal axis

6 visualizaciones (últimos 30 días)
Venkata Brahma Teja Haridasu
Venkata Brahma Teja Haridasu el 17 de Abr. de 2021
Editada: Matt J el 18 de Abr. de 2021
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.

Respuesta aceptada

Matt J
Matt J el 17 de Abr. de 2021
Editada: Matt J el 18 de Abr. de 2021
For example,
x=linspace(-pi,pi,1000);
y=exp(x);
plot(x(:)+(0:5)*10,y);
axis([0,100,0,10]); legend

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by