Effacer les filtres
Effacer les filtres

use string as x and y for a plot

2 vues (au cours des 30 derniers jours)
TheDice
TheDice le 13 Août 2021
Réponse apportée : Wan Ji le 13 Août 2021
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 commentaires
Chunru
Chunru le 13 Août 2021
What is your data?
TheDice
TheDice le 13 Août 2021
Frequenz should be my x axis and the other two are my y axes.

Connectez-vous pour commenter.

Réponses (1)

Wan Ji
Wan Ji le 13 Août 2021
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

Community Treasure Hunt

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

Start Hunting!

Translated by