how to create a table in matlab to list my results in without the need to run the program each time to get the results and plot
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponse acceptée
Rick Rosson
le 28 Déc 2012
Modifié(e) : Rick Rosson
le 28 Déc 2012
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.
2 commentaires
Rick Rosson
le 29 Déc 2012
So that means N = 2, and you can use the method that I proposed in my answer above. Does that make sense to you? If not, what specifically is not clear?
Plus de réponses (2)
Image Analyst
le 27 Déc 2012
What is a "runnable table"? What does "apply" mean? If you want to save variables from a run of your program, you can use the save() function. If you need to recall them into another run of your program, you can use the load() function. If you want to have a table, you can use the uitable() function or GUIDE to create a grid/table. Beyond that, I have no more guesses about what you mean.
4 commentaires
Rick Rosson
le 29 Déc 2012
Please take a look at this self-paced tutorial:
It will answer this question along with many others that you may have.
0 commentaires
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!