- use the scatter plot. i.e scatter(x,y)
- sort the data and then use plot. i.e
Plotting two vectors as a function of each other
33 views (last 30 days)
I have two vectors representing the throughput and delay of a wireless network link, both plotted as a function of the applied load given as the number of competing stations present from 1 to N = 100 (where N = the maximum considered number of stations and the length of each vector).
What I want to do is plot the throughput as a function of the delay - how can I do this?
I've come across the function plotxy() which sounds like it does what I need but this uses the simscape toolbox, which I'm not using for the project.
Mayank Bajpai on 28 Oct 2020
I think, you have two simple options:
temp = sortrows([x y]); % assuming x and y are row vector.