Point out a specific value in a plot.
Mostrar comentarios más antiguos
Following is the code to minimize a Sol over Q. The minimized value is obtained at Qmin. I want to plot Qmin on the plot for Q vs Sol. At the least tell me how to determine how look for its data point in the Q array.
x1 = 5900000;
x2 = 8800000;
Qmin = fminbnd(@Sol, x1, x2);
Qmin
disp(Qmin);
Q = 5900000:10000:8800000;
diff = Sol(Q);
diffQ = Sol(Qmin);
plot (Q,diff)
xlabel('Assumed Flux(Q)');
ylabel('Assumed Flux(Q) - Obtained Flux(qr)');
Respuestas (1)
KSSV
el 6 de Dic. de 2017
0 votos
Easy no...use plot and hold on
2 comentarios
Devdatt Thengdi
el 6 de Dic. de 2017
KSSV
el 6 de Dic. de 2017
Read about find and logical indexing.
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!