First, it is suggested to obtain the 2D plot.
Then use this function. InterX
P = InterX([P2S;phiS],[P2S;Y]);
plot(P2S,phiS,P2S,Y,P(1,:),P(2,:),'ro'); grid on;xlabel('P2');ylabel('Phi'); hold on;
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!