Subtract 2D curves at y axis values

4 visualizzazioni (ultimi 30 giorni)
Yose D
Yose D il 16 Lug 2019
Hi there,
I have three curves, but for simplicity, consider two curves: A of Xa and Ya data and B of Xba and Yb data, that has different sizes and an equal ultimate Ya and Yb. Using "intrep2" made them of equal length. Now I want to subtract (Xa-Xb) at every Ya that is the nearest to any Yb, i.e, lookup for Ya at Yb, then subtract X values of those points. Subtracting A-B will not work because Y values are of diffirent threshold. The following pictures shows my three curves:
Data.png
I want to subtract the red from the others which would make them shift to the left with slight change in their slope. the (A-B) results the following:
After subtraction.png
here, black and blue curves should be at Zero or very close to it at all the X values, because (A-B) will also subtract the Y values,,
Best
Yose

Risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by