I want to extract outer points of my plot(Chaotic Data Points) and plot it with the extracted outer points.
Afficher commentaires plus anciens
alpha = 0;
% Initial conditions
x = 1;
y = 1;
z = 1;
% Time step
dt = 0.01;
% Arrays to store the trajectory points
x_traj = [];
y_traj = [];
z_traj = [];
% Loop over time
for t = 0:dt:300
% Calculate x', y', and z' for the current alpha
x_prime = (25*alpha + 10)*(y - x);
y_prime = (28 - 35*alpha)*x - x*z + (29*alpha - 1)*y;
z_prime = x*y - ((alpha+8)/3)*z;
% Update x, y, and z
x = x + dt*x_prime;
y = y + dt*y_prime;
z = z + dt*z_prime;
% Store the trajectory points
x_traj = [x_traj, x];
y_traj = [y_traj, y];
z_traj = [z_traj, z];
end
% Plot x and y
figure;
plot(x_traj, y_traj);
xlabel('x')
ylabel('y');
title('Phase Portrait: x and y');
grid on;
I have written this code and from this I have got the following plot
;

There are a lot of self intersecting points in this plot.So I want a exact shape but without using the selfintersecting points.Then I used Convhull command
convhull_indices = convhull(x_traj, y_traj);
plot(x_traj(convhull_indices), z_traj(convhull_indices), 'r');
and I got this plot

But this is not the excat representation of the previous shape

I am actually looking something like this.Which command or procedure I should use.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Exploration and Visualization 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!

