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 CenterFile Exchange에서 2-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