Shifting a Z = F(x,y) on the x and y axis

1 Ansicht (letzte 30 Tage)
Mohammad Alsaleh
Mohammad Alsaleh am 26 Apr. 2018
I have a 3-D function, basically a 2-D matrix that I use mesh to plot on a range of [-xo:+xo] and [-yo:+yo]. I need a duplicate version of this function but a shifted one on the x and y-axis, so mathematically I need
Z = F(X-Xp,Y-Yp)
My ultimate purpose is to add the two versions of Z in the end.
I know how to plot the shifted version but not how to generate an actual one. Check the attached image.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by