Need help to get the minimum absolute value of intersection point
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
md mayeen uddin
el 4 de Sept. de 2021
Comentada: md mayeen uddin
el 4 de Sept. de 2021
below are my two vector L1(976x1) and L2(976x101) . i am calculatin the minimum absolute value where they intersecting. the figure below is for the command of
figure, plot(Tspan,y(:,1)), hold on, plot(tspan,SigV(:,81))
so if i run Tspan(rowOfMinValue) and tspan(rowOfMinValue) i am getting different values at column no 81 than the graph for both case.i need the value exactly where they are intersecting.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
tspan =[0.0976:-0.0001:0] % Span for L1
Tspan = [0 : 0.0001: 0.0976] % Span for L2
L1 = y( : ,1);
L2 = SigV;
dL =L2(:,1:end)- L1;
columns = length(dL(1,:));
rowOfMinValue = [];
for col = 1 : columns
% Find min value in this column, and it' s row number (index).
[minValue(col), rowOfMinValue(col)] = min(abs(dL(:, col)));
end
% Report to command window:
rowOfMinValue
2 comentarios
Respuesta aceptada
KSSV
el 4 de Sept. de 2021
Use this file exchange: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!