# Plotting between a point and a frame

6 views (last 30 days)
Furkan KARDIYEN on 21 Mar 2024
Answered: Anton Kogios on 22 Mar 2024
Hi, i have a parametric equation to obtain a frame in 3D and i can plot it just fine.
I have an arbitrary point in space and if i draw a line from this point to the middle of the frame, whether it be a rectangle or circle, it is perpendicular to the surface enclosed by the frame.
As the point, frame and distance between them known, how can i create a surface between the frame and the point? It is like if i am drawing lines from all the points in the frame to the single point away
##### 0 CommentsShow -2 older commentsHide -2 older comments

Sign in to comment.

### Answers (1)

Anton Kogios on 22 Mar 2024
Not excatly sure if I've understood your question, but here's my attempt at interpreting it:
n = 50;
t = linspace(0,2*pi,n);
hold on
plot(cos(t),sin(t))
line([zeros(1,n);cos(t)],[zeros(1,n);sin(t)],'Color','g')
plot(0,0,'.','MarkerSize',40)
I have a feeling this isn't what you are after - you may be after the fill function.
##### 0 CommentsShow -2 older commentsHide -2 older comments

Sign in to comment.

### Categories

Find more on Surface and Mesh Plots in Help Center and File Exchange

R2022b

### Community Treasure Hunt

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

Start Hunting!