The function plotxy() is not recognized

4 vues (au cours des 30 derniers jours)
Michael Dilmore
Michael Dilmore le 21 Sep 2020
Commenté : Michael Dilmore le 21 Sep 2020
Hi all
I'm trying to plot two functions (throughput and delay) of the variable n against each other, i.e. throughput as y and delay as the x axis.
I have the following line of code:
tput_vs_delay = plotxy(tput, delay)
But MatLab does not recognise the "plotxy" function:
% Unrecognized function of variable 'plotxy'
I found the function on the link below:
But I can't seem to use it in my code in R2019b.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 21 Sep 2020
You need simscape toolbox to use this function: https://www.mathworks.com/help/physmod/simscape/index.html. Also, you need to call it like this
simscape.logging.plotxy(x, y)
Note that x and y are not vectors. These are simulation data generated through Simulink.
  1 commentaire
Michael Dilmore
Michael Dilmore le 21 Sep 2020
Thanks for your prompt response Ameer - I will look into this.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by