use string as x and y for a plot

Hi all, I'm stuck and can't find the right answer. I have two string arrays and want to plot them as x and y axis. The normal plot command doesn't work.
Many greetings
Fabian

2 件のコメント

Chunru
Chunru 2021 年 8 月 13 日
What is your data?
TheDice
TheDice 2021 年 8 月 13 日
Frequenz should be my x axis and the other two are my y axes.

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

回答 (1 件)

Wan Ji
Wan Ji 2021 年 8 月 13 日

0 投票

Just use str2double function!
NOMAX410LCR_Cp = str2double(NOMAX410LCR_Cp);
NOMAX410LCR_Frequenz = str2double(NOMAX410LCR_Frequenz);
NOMAX410LCR_Rp = str2double(NOMAX410LCR_Rp);
Then you can plot what you want

カテゴリ

質問済み:

2021 年 8 月 13 日

回答済み:

2021 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by