If independent variable : X = [x1, x2, ..., xn], dependent variable Y = [y1, y2, ..., yn], then plot(X,Y). To create a plot with a linear scale on the x-axis and a log (base 10) scale on the y-axis you can use the function semilogy. To create a plot with a linear scale on the x-axis and a log (base 10) scale on the x-axis you can use the function semilogx.
Hi Anil Keshari, elaborate what exactly you are seeking.
If you want to understand how MATLAB code is written/working, write that particular code for Pd vs SNR (dB) here. I can include line by line comment to it for the sake of your understanding. Or if it is related to the theoretical derivation of the probability of detection, we can discuss the same.
above code is Pd vs SNRdB. but this is theoreticaly simulated i want to add lets say i transmitted the bits and recieved and then i want to make binary hypothesis to test that the recieved signal lies in which one of the hypothesis by considering threshold as deciding factor. then from there i can calculate ROC also by deciding PD vs PFAand plot Pd vs SNRdb also.