how to remove points which height (axis y) is more than 75% of the height

1 次查看(过去 30 天)
I have a graphic and i have to Remove all points which height (in the axis y) are more than 75% of the height. Actually, i don't remove this points, just move them to (x, 0.75·heightofword)
How can i do this?
Thanks very much!!!

采纳的回答

Image Analyst
Image Analyst 2013-10-1
Just clip the y axis to 75% of the max y value.
maxY = max(y);
maxYForGraph = 0.75 * maxY;
ylim([min(y), maxYForGraph]);
  3 个评论
Antonella
Antonella 2013-10-1
I have tried to use what you wrote me but without succes. anyway the thing that i have to do before is this:
To move the corner to (0,0).I have to find xmin and ymin and then each point (x,y) has to move to (x-xmin, y-ymin). The height of a word is ymax-ymin (before moving). If i compute it after having moved then it is ymax’ (ymax after the moving).
how i can do this?
Thanks so much!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Construction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by