Elliptic Mesh Generation - Graphics/Ploting help
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tamir Gazit
el 29 de Abr. de 2020
Comentada: Ameer Hamza
el 30 de Abr. de 2020
Hi,
I am trying to create a grid like the following:
![](https://www.researchgate.net/profile/Ali_Asghar_Atai/publication/329699509/figure/fig1/AS:704424062226433@1544959192951/Membrane-with-an-elliptic-hole-quarter-model-and-grid-lines-for-analysis_Q320.jpg)
I have two vectors: X and Y coordinates.
I need to find a way to add vertical lines to this plot.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288708/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288708/image.png)
Thanks,
Tamir
4 comentarios
Respuesta aceptada
Ameer Hamza
el 30 de Abr. de 2020
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288901/image.png)
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!