Elliptic Mesh Generation - Graphics/Ploting help
7 次查看(过去 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
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!