How to plot an overlay curve on the figure attached here.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nisar Ahmed
il 27 Ago 2021
Commentato: Nisar Ahmed
il 1 Set 2021
Hello,
The code for the attached/copied figure is
figure, p = pcolor(b,a,c); p.EdgeColor = 'none'; axis ij; ylim([500 2500]); colorbar; title('abc');
ylabel('Time (ms)'); colormap(jet); grid on
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/723314/image.jpeg)
I want to plot a straight line or a curve between (showing relation) a vs. c at x axis where b = 6000. Suppose the curve a vs c has same dimension like the data plotted here as p = pcolor(b,a,c);. How can I plot here.
0 Commenti
Risposta accettata
Kevin Holly
il 27 Ago 2021
Use
hold on
then plot the graph.
plot(x,y)
3 Commenti
Kevin Holly
il 31 Ago 2021
Modificato: Kevin Holly
il 31 Ago 2021
@Nisar Ahmed I'm not entirely sure what you are asking.
Are you trying to plot this?
plot(a,c(6000,:))
This would plot the values along the vertical line shown below.
figure
p = pcolor(b,a,c);
p.EdgeColor = 'none';
axis ij; ylim([500 2500]);
colorbar;
title('abc');
ylabel('Time (ms)');
colormap(jet);
grid on
hold on
xline(6000)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!