MATLAB Answers

curve shifting on horizontal axis

20 ビュー (過去 30 日間)
Venkata Brahma Teja Haridasu
Venkata Brahma Teja Haridasu 2021 年 4 月 17 日 23:29
編集済み: Matt J 2021 年 4 月 18 日 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 2021 年 4 月 17 日 23:44
編集済み: Matt J 2021 年 4 月 18 日 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