문제

By using Sci-lab I need to draw triangle cicrle and rectangular (separately, of course). the most difficult for me is triangle, I have no idea how to plot them

도움이 되었습니까?

해결책

Plotting is rather trivial. See the plot command reference.

There are shorter ways, but for easiest understanding just plot the three sides as three lines.

For instance if you have a triangle with the corner coordinates at (x,y) = [0,0],[5,10],[10,0]. Plot three lines between these points.

plot([0,5],[0,10])
plot([5,10],[10,0])
plot([0,10],[0,0])
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top