Plot 2 columns in matrix depend on another column
1 回表示 (過去 30 日間)
古いコメントを表示
I have this data below, I want create loop to plot colum number 4 and 5 depend on column number 1, So the result for loop will be
Result rows = 20 10 80 805 82.1420812600000
25 10 80 895 85.8267390600000
30 10 80 805 84.4953351700000
40 10 80 945 89.3860526900000
Data=
20 10 80 805 82.1420812600000
20 10 80 815 82.5962426700000
20 10 80 825 83.0389831800000
20 10 80 835 83.4699908200000
20 10 80 845 83.8896382500000
20 10 80 855 84.2982532800000
20 10 80 865 84.6960746400000
20 10 80 875 85.0833919500000
20 10 80 885 85.4605315700000
25 10 80 895 85.8267390600000
20 10 80 905 86.1843723100000
20 10 80 915 86.5321793200000
20 10 80 925 86.8715343500000
20 10 80 935 87.2021683100000
20 10 80 945 87.5244455200000
30 10 80 805 84.4953351700000
30 10 80 815 84.9111542400000
30 10 80 825 85.3157596600000
30 10 80 835 85.7094764100000
30 10 80 845 86.0926231200000
30 10 80 855 86.4629108300000
30 10 80 865 86.8250898300000
30 10 80 875 87.1773925300000
30 10 80 885 87.5201869600000
30 10 80 895 87.8536800000000
30 10 80 905 88.1782819700000
30 10 80 915 88.4925349600000
30 10 80 925 88.7979872900000
30 10 80 935 89.0957112400000
40 10 80 945 89.3860526900000
0 件のコメント
採用された回答
Arif Hoq
2022 年 12 月 6 日
Data=[
20 10 80 805 82.1420812600000
20 10 80 815 82.5962426700000
20 10 80 825 83.0389831800000
20 10 80 835 83.4699908200000
20 10 80 845 83.8896382500000
20 10 80 855 84.2982532800000
20 10 80 865 84.6960746400000
20 10 80 875 85.0833919500000
20 10 80 885 85.4605315700000
25 10 80 895 85.8267390600000
20 10 80 905 86.1843723100000
20 10 80 915 86.5321793200000
20 10 80 925 86.8715343500000
20 10 80 935 87.2021683100000
20 10 80 945 87.5244455200000
30 10 80 805 84.4953351700000
30 10 80 815 84.9111542400000
30 10 80 825 85.3157596600000
30 10 80 835 85.7094764100000
30 10 80 845 86.0926231200000
30 10 80 855 86.4629108300000
30 10 80 865 86.8250898300000
30 10 80 875 87.1773925300000
30 10 80 885 87.5201869600000
30 10 80 895 87.8536800000000
30 10 80 905 88.1782819700000
30 10 80 915 88.4925349600000
30 10 80 925 88.7979872900000
30 10 80 935 89.0957112400000
40 10 80 945 89.3860526900000];
[C ia ~]=unique(Data(:,1));
result_rows=Data(ia,:)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!