matlab - Loglog plot with linear ticks on x-axis -


so have data i'd plotted on loglog scale, linear values on y-axis , values in db on x axis and

loglog(ebn0,ber) 

outputs nice looking curve, problem axis ticks. it's fine on y-axis, x axis has 1 tick, @ 10^0and no other ticks. furthermore, tick corresponds absolute value, not db value. convenient way accomplish this?

(note both ebn0 , ber contain absolute values)

edit: i'll add data , explain want bit more.

ebn0 =    columns 1 through 14  0.5000    1.0000    1.5000    2.0000    2.5000    3.0000    3.5000    4.0000    4.5000    5.0000    5.5000    6.0000    6.5000    7.0000    columns 15 through 20  7.5000    8.0000    8.5000    9.0000    9.5000   10.0000  ber_tot_iter =    columns 1 through 14      0.2928    0.2024    0.1183    0.0511    0.0164    0.0046    0.0010    0.0003    0.0001         0    0.0000    0.0000    0.0000         0    columns 15 through 20           0         0         0         0         0         0 

if plot(10*log10(ebn0),10*log10(ber_tot_iter)), graph want , db values on x axis, y ticks displayed in db's instead of absolute values... want relabel y ticks, not rescale figure.

relabeling ticks wrong approach here. you'd replace numerical values strings , resizing etc. wouldn't work anymore. data not fit you're looking at. should try transform data first.

so besides loglog have @ semilogx , semilogy, allow have single logarithmic axis.

to sum up, you're looking is:

semilogy(10*log10(ebn0), ber_tot_iter) 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -