フィルターのクリア

Iterating and subsetting for a plot in Matlab

1 回表示 (過去 30 日間)
Gbeminiyi Oyedele
Gbeminiyi Oyedele 2022 年 7 月 19 日
コメント済み: Gbeminiyi Oyedele 2022 年 7 月 20 日
Good day,
I need help in subsetting my output and running a plot. This is my challenge:
I have an output of the shape A = (500,844). The row is for 5 different group, meaning that participant A1 =(1:100, 844), A2 =(101-200,844).... A5 =(401-500,844)
What I intend to do is do a plot on thesame graph for the five different groups. I can't do it one by one because over time the size row A ca change but the column size remain constant all through.
Is this possible?
  2 件のコメント
dpb
dpb 2022 年 7 月 19 日
編集済み: dpb 2022 年 7 月 19 日
As I showed another recent poster, <How-can-i-easily-extract-element-from-a-big-matrix> don't try to infer something from the position; compute and use a grouping variable that identifies the groups. Tables are often convenient but one can use grouping variables without -- see findgroups and splitapply
Gbeminiyi Oyedele
Gbeminiyi Oyedele 2022 年 7 月 20 日
Thank you. This helps

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by