use string as x and y for a plot

2 次查看(过去 30 天)
TheDice
TheDice 2021-8-13
回答: Wan Ji 2021-8-13
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

回答(1 个)

Wan Ji
Wan Ji 2021-8-13
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

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by