flipping a maximum point to become a minimum of the same size

having the attached data, how can we flip the points indicated in red (assumed as maximums) to become minimums of the same size?

1 Comment

It's not clear what is the output you want to obtain. Can you visualize it via an example and show?

Sign in to comment.

Answers (1)

You can chnage the sign right?
plot(xup,-yup)

1 Comment

Thank for the swift reply. I am not asking how to flip them around the x or the y axis. I am trying to find away to flip each maximum peak for eaxmple 180 degrees around itself, for it to become a minimum. Or to have the peak directed towards the other side.

Sign in to comment.

Products

Release

R2022b

Asked:

on 1 Aug 2023

Commented:

on 1 Aug 2023

Community Treasure Hunt

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

Start Hunting!