필터 지우기
필터 지우기

Elliptic Mesh Generation - Graphics/Ploting help

조회 수: 7 (최근 30일)
Tamir Gazit
Tamir Gazit 2020년 4월 29일
댓글: Ameer Hamza 2020년 4월 30일
Hi,
I am trying to create a grid like the following:
I have two vectors: X and Y coordinates.
I need to find a way to add vertical lines to this plot.
Thanks,
Tamir
  댓글 수: 4
Ameer Hamza
Ameer Hamza 2020년 4월 30일
If possible, you can share the datapoints to draw this curve.
Tamir Gazit
Tamir Gazit 2020년 4월 30일
datapoints:

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 30일
Try this. It separates the points on edge and connects each of them to the center.
load('points.mat');
x_edge = x10N(end-50:end);
y_edge = y10N(end-50:end);
lines_X = [x10N(1)*ones(size(x_edge)).'; ...
x_edge.'];
lines_Y = [zeros(size(x_edge)).'; ...
y_edge.'];
plot(x10N, y10N, 'b');
hold on
plot(lines_X, lines_Y, 'b-')
axis equal
  댓글 수: 2
Tamir Gazit
Tamir Gazit 2020년 4월 30일
You are amazing!
Thank you!
Ameer Hamza
Ameer Hamza 2020년 4월 30일
I am glad to be of help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by