How do you create a scatter plot using select columns from app.UITable.Data?

12 ビュー (過去 30 日間)
Dc215905
Dc215905 2022 年 6 月 23 日
コメント済み: Walter Roberson 2022 年 6 月 23 日
I have a Table where the rows get added and updated. I would like to be able to create a scatter plot of the table. Any thoughts?
  2 件のコメント
Dc215905
Dc215905 2022 年 6 月 23 日
編集済み: Dc215905 2022 年 6 月 23 日
Yes, the plotting should be based on variable (column) and the the columns are always the same. I thought I could just convert the two columns of interest to an array and simply due scatter(Column2,Column4), but I can't find a solution.
As an example, the figure below is my table and I would like to create a scatter plot using column1 (%MSO) and Column3 (MEP Amplitude):

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

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 6 月 23 日
scatter(TableName{:,2}, TableName{:,4})
  3 件のコメント
Walter Roberson
Walter Roberson 2022 年 6 月 23 日
Why are you storing text for your uitable entries? Why are you not storing numeric values?

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

Community Treasure Hunt

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

Start Hunting!

Translated by