The function plotxy() is not recognized

3 ビュー (過去 30 日間)
Michael Dilmore
Michael Dilmore 2020 年 9 月 21 日
コメント済み: Michael Dilmore 2020 年 9 月 21 日
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.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 21 日
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 件のコメント
Michael Dilmore
Michael Dilmore 2020 年 9 月 21 日
Thanks for your prompt response Ameer - I will look into this.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by