MATLAB Answers

curve shifting on horizontal axis

조회 수: 20(최근 30일)
Venkata Brahma Teja Haridasu
Venkata Brahma Teja Haridasu 17 Apr 2021 23:29
편집: Matt J 18 Apr 2021 0:01
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.

채택된 답변

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

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by