Non-numeric x-axis vs numeric y-axis scatter plot data (read from excel spreadsheet)

Hello,
I need to scatter plot y-axis values that I have collected for 4P, 8P and 12P conditions in my excel spreadsheet. However, the corresponding x-axis values (CASE 1, CASE 2, CASE 3, CASE 4, CASE 5, CASE 6, and CASE 7) have to be non-numerical and set in a clear range to be clearly visible in the plot. In other words, 4P, 8P and 12P values for each CASE should be on top of each other on the same x-axis and there should be 7 CASES on the x-axis. I could not figure it out, Matlab only recognizes numerical data from the excel.
This is just a shortened example, real data is a bit complicated.
I would appreciate if anyone can help.

1 件のコメント

Berkay Bayramin
Berkay Bayramin 2022 年 9 月 3 日
I solved the x-axis tick labelling problem it by using B = categorical(A,valueset,catnames).
Thanks to anyone who was interested.

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

回答 (0 件)

カテゴリ

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

製品

リリース

R2021a

質問済み:

2022 年 8 月 31 日

コメント済み:

2022 年 9 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by