MATLAB: How to create a table in matlab to list the results in without the need to run the program each time to get the results and plot

i ran the same program twice in two cases to get the value of SNR & BER and i got two list of values for each .. how can i apply it in a runnable table plz?

Best Answer

Maybe you can create an M x N matrix to store the result of M values of SNR for each of N experiments. So, for example, you could pre-allocate:
M = size(snr,2);
N = ...
errorCount = zeros(M,N);
...
...
ber = errorCount/I;
...
...
HTH.