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 (최근 30일)
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?

채택된 답변

Rick Rosson
Rick Rosson 2012년 12월 28일
편집: Rick Rosson 2012년 12월 28일
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
mary
mary 2012년 12월 28일
I want to recall M different values of SNR and M different values for BER from two different programs. I want to use them to drow two curves
Rick Rosson
Rick Rosson 2012년 12월 29일
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?

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Image Analyst
Image Analyst 2012년 12월 27일
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
mary
mary 2012년 12월 28일
I want to recall M values of SNR and M values of BER from two different programs so this didn't work

댓글을 달려면 로그인하십시오.


Rick Rosson
Rick Rosson 2012년 12월 29일
Please take a look at this self-paced tutorial:
It will answer this question along with many others that you may have.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by