How can I make maximum points of curves in 2nd region curves not as triangles?
Show older comments
2 Comments
Mathieu NOE
on 21 Jul 2026
Edited: Mathieu NOE
on 21 Jul 2026
sorry, where do you see triangles ?

Shreen El-Sapa
on 21 Jul 2026
Answers (1)
Use
% Plotting each curve with a distinct color and label
plot(r_vec(1:100),real(u_vals(1:100)), '-', 'Color', colors(m,:), ...
'LineWidth', 2,'DisplayName',sprintf('\\rho_1 = %g', params.rho1))
plot(r_vec(102:end),real(u_vals(102:end)), '-', 'Color', colors(m,:), ...
'LineWidth', 2,'HandleVisibility', 'off');
instead of
% Plotting each curve with a distinct color and label
plot(r_vec, real(u_vals), '-', 'Color', colors(m,:), ...
'LineWidth', 2, 'DisplayName', sprintf('\\rho_1 = %g', params.rho1));
6 Comments
Shreen El-Sapa
on 21 Jul 2026
Shreen El-Sapa
on 21 Jul 2026
Edited: Shreen El-Sapa
on 21 Jul 2026
Torsten
on 21 Jul 2026
So you think that
lim (r->1-) u1(r) = lim (r->1+) u2(r)
?
Shreen El-Sapa
on 21 Jul 2026
Edited: Shreen El-Sapa
on 21 Jul 2026
I don't see it:
% SH2 - Velocity Profile Evolution Solver
% Simulates and plots the velocity profile for 4 different values of rho1.
sigma = 1;
rho1_vals = [0.01, 1, 5, 10]; % Represents the 4 distinct curves
params = struct('s1', 0.3, 'c', 10, 's2', 0.1, 'alpha', 1, ...
'j', 0.1, 'mu1', 0.1, 'mu2', 1, 'g', 1);
% Loop through the 4 curves corresponding to each rho1 value
for m = 1:length(rho1_vals)
params.rho1 = rho1_vals(m);
eps = 1e-10;
r = 1-eps;
u_left = get_one_point(sigma, params, r)
r = 1+eps;
u_right = get_one_point(sigma, params, r)
end
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!