Elliptic Mesh Generation - Graphics/Ploting help

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 commentaires

Ameer Hamza
Ameer Hamza le 29 Avr 2020
Can you share the code for generating these figures? It will be much easier to suggest a solution if we already have code for this figure.
Tamir Gazit
Tamir Gazit le 30 Avr 2020
Actually I wrote the code in C language.
I'm exporting x and y vectors
Ameer Hamza
Ameer Hamza le 30 Avr 2020
If possible, you can share the datapoints to draw this curve.
Tamir Gazit
Tamir Gazit le 30 Avr 2020
datapoints:

Connectez-vous pour commenter.

 Réponse acceptée

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 commentaires

Tamir Gazit
Tamir Gazit le 30 Avr 2020
You are amazing!
Thank you!
Ameer Hamza
Ameer Hamza le 30 Avr 2020
I am glad to be of help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by