Select specific rows and compare

Good Morning everyone.
I have been working on this and I could not make it work. I have of n options with 1000 simulation results as columns: (1)simulation, (2)options, (3)x-value, (4)y-value
1 1 x1 y1
1 2 x2 y2
... ... ... ...
1 n Xn Yn
2 1 ... ...
... ... ... ...
1000 n
Basically, matrix was sorted by simulation in column 1 and options in column 2. I need to write a code to pairwise between options and compare x-value and y-value. For example, pair option 1 and option 2, if x1 < x2 && y1 > y2, result is 1 else 0.
So final matrix should (suggested) column as (1)Simulation,(2)Pair 1&2,(3)Pair 1&3,..., (n)Pair 1&n, (n+1)Pair 2&3, ... pair (n-1,n)
1 0 1 ... 1 1 0
... result of 1, 0
1000
Moreover, I would like to ask if MathLab can do T-test. I want to compare the final results of each pairwise using T-test in order to see significant of each pairwise results.
Thank you very much.

3 件のコメント

dpb
dpb 2014 年 9 月 30 日
This appears to be the same basic problem as just raised in another very recent thread...
Leandro
Leandro 2014 年 9 月 30 日
Let me understand, for each simulation you have a even number of results and you want to compare them and put it in columns in the same row numbered by the simulation. Is it?
OoM
OoM 2014 年 9 月 30 日
Yes in each simulation, all options have their own x and y value which I would like to compare and save compared results again separately.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Distribution Plots についてさらに検索

質問済み:

OoM
2014 年 9 月 30 日

コメント済み:

OoM
2014 年 9 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by