Plot arrays plus intersections.

2 次查看(过去 30 天)
Walter Manns
Walter Manns 2011-11-13
With this i'm actually plotting three different arrays (Tpf, pfo and Tpp)
Example:
Tpf = [0 1 2 3 4 5] Tpp = [5 9 12 15 18 23] pfo = [0.1 0.2 0.3 0.4 0.5 0.6]
I want to plot pfo/Tpp intersection in the same plot, so it shows the values of pfo and Tpp on the intersection.
[AX,H1,H2] = plotyy(time,Tpf,time,pfo);
title('Proceso de Esterilización');
xlabel('Tiempo [s]');
set(get(AX(1),'ylabel'),'String','Temperatura [°C]')
set(get(AX(2),'ylabel'),'String','Grado de Esterilización [s]')
set(H1,'Color','blue','LineWidth',2);
set(H2,'Color','green','LineWidth',2);
hold all;
H3 = plot(time,Tpp);
set(H3,'Color','red','LineWidth',2);
Best Regards

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by