I 2-D plot of y with specific x
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Eric Elharer
am 11 Aug. 2018
Kommentiert: Star Strider
am 11 Aug. 2018
Hi trying to pot PSNR values at specific exposur time psnr_val=[22 24 29 32 33] exp_t =[0.01 0.1 1 10 100]
0 Kommentare
Akzeptierte Antwort
Star Strider
am 11 Aug. 2018
I am guessing here as to what you want.
Try this:
psnr_val=[22 24 29 32 33];
exp_t =[0.01 0.1 1 10 100];
figure
semilogx(exp_t, psnr_val)
grid
xlabel('exp\_t')
ylabel('psnr\_val')
Use plot instead of semilogx if you want a linear x-scale.
3 Kommentare
Star Strider
am 11 Aug. 2018
As always, my pleasure.
If your x values are not logarithmic, use either plot or semilogx, depending on the result you want.
Please feel free to experiment.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!