필터 지우기
필터 지우기

draw a line parallel to x-axis

조회 수: 18 (최근 30일)
Elysi Cochin
Elysi Cochin 2018년 1월 19일
편집: Elysi Cochin 2018년 1월 19일
How to draw line parallel to x-axis at a point (y = 1) and also find the area above that line.

채택된 답변

Jan
Jan 2018년 1월 19일
편집: Jan 2018년 1월 19일
line([0.2, 19.8], [1, 1], 'Color', [1,0,0]);
If you have a question about drawing a "line", look into the documentation:
docsearch line
To get the area, create a polygon at first by finding the points, where this line crosses the area. Perhaps this helps:
You can find such functions by searching in the FileExchange or in the internet. You are a long term user of the forum and should know, that you are wanted to search by your own at first.
Afterwards polyarea helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by