Plotting two vectors as a function of each other
11 ビュー (過去 30 日間)
古いコメントを表示
Hi all
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.
1 件のコメント
Akira Agata
2020 年 9 月 22 日
If your two vectors have the same size (e.g 1-by-N), I would recommend simply applying plot function.
If possible, could you upload your data (or share a small example) ?
回答 (1 件)
Mayank Bajpai
2020 年 10 月 28 日
I think, you have two simple options:
- use the scatter plot. i.e scatter(x,y)
- sort the data and then use plot. i.e
temp = sortrows([x y]); % assuming x and y are row vector.
plot(temp(:,1),temp(:,2))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simscape Multibody についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!