How can I make the two lines meet in their intersection point as shown in the figure below ?
(I want to obtain the two lines that I've drawn using red dots!)
clc ;clear all; close all; %Profilo
gamma = 1.4;xdorso = [0 0.7 1]; xventre = [0 0.45 1];ydorso = [0 0.03 0]; yventre = [0 -0.05 0];delta1 = atand(0.03/0.44);delta2 = atand(0.05/0.45);delta3 = atand(0.03/0.56);delta4 = atand(0.05/0.55);n = 1000;x = linspace(0,1,n);alfa = -8:2:8;deviazionedorso = delta1 + abs(alfa(1:4)); deviazioneventre = delta2 + alfa(5:end); mach1 = 1.01:0.001:1.6;lunghezza = length(mach1);massimo = mach1;for i = 1:lunghezzam1 = mach1(i);epsmin = asin(1/m1)*57.3;eps = linspace(epsmin,90,30);delta = abaco(eps,m1,gamma);massimo(i)= max(delta);figure(1)plot(eps,delta);hold onendmachcriticodorso = deviazionedorso;for i = 1:length(deviazionedorso) calcolod = deviazionedorso(i);for j = 1:lunghezza if abs(massimo(j)-calcolod)<0.1 machcriticodorso(i) = mach1(j); end endend machcriticoventre = deviazioneventre;for i = 1:length(deviazioneventre) calcolov = deviazioneventre(i);for j = 1:lunghezza if abs(massimo(j)-calcolov)<0.1 machcriticoventre(i) = mach1(j); end endend machcriticosuperiore = [machcriticodorso machcriticoventre]; figure(4); plot(alfa,machcriticosuperiore,'k-o'); xlabel('\alpha'); ylabel('M_{cr_{sup}}'); axis([-8 8 1 1.6])
Best Answer