Multiple x-axis for a single plot

32 ビュー (過去 30 日間)
Shah Bahauddin
Shah Bahauddin 2016 年 6 月 9 日
編集済み: dpb 2016 年 6 月 10 日
I am a newbie matlab user.
So, I have
x1 = [183.75 189.748 195.745 201.743];
x2 = [0 1 2 3];
y = [10 30 80 50 90 25 40 70];
I am trying to have a subplot where x1 is the principal x-axis and x2 is the secondary x-axis. The plot will have 2 curves such as below
plot(x1, y(1:4), x1, y(5:8))
I went through matlab forums but could not find any specific answer of my problem.

回答 (1 件)

dpb
dpb 2016 年 6 月 9 日
編集済み: dpb 2016 年 6 月 10 日
Maybe shoulda' searched the documentation first... :)
The other place to look for specialty stuff such as this is File Exchange --

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by