to change the scale of a plotted graph
Show older comments
Hi fellow friends,
I want to change the scale of a graph to a new scale. previous scale is start from 0 with the increment of 0.5. this graph and scale is auto generated from the data. my coding for plotting as below.
bit_error(1,oye) = sum(m5~=data_topi); % BER
Eb_No=snr(oye)-3; EbNo=10^(Eb_No/10);
% fprintf('Looping = %1d, SNR = %1d, BitError = %1d,...
% jum,snr(oye),bit_error(oye));
% if snr(oye) == max(snr)
% display('*****************************');
% end
end
total_bit_error(jum,:) = bit_error;
end
BER = sum(total_bit_error)/(length(m5)*iteration);
figure; % BER vs SNR in linear value
plot(snr,BER,'ro-'); hold on
grid on
xlabel('\fontname{calibri}{SNR}')
ylabel('\fontname{calibri}{BER}')
title('\fontsize{10}{BER vs SNR in Linear Value}')
3 Comments
Walter Roberson
on 2 Feb 2012
Are you referring to the tick marks and tick labels?
What would you like to have show up?
fiteri razali
on 2 Feb 2012
fiteri razali
on 2 Feb 2012
Accepted Answer
More Answers (0)
Categories
Find more on Grid Lines, Tick Values, and Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!