How to write two variables on the x-axis and change corresponding Xlimits?

조회 수: 1(최근 30일)
how to put two xtick labels in a plot. I have CC versus AA plot. I would like to write the corresponding values of BB on X-axis along with AA-coordinates. Is it possible? The code may be like:
load('AA.mat');
load('BB.mat');
load('CC.mat');
plot(AA,CC);
The example data is attached below.
Is it also possible to Change the values of BB scale in response to the change in X-limit? Any help will be greatly appriciated. Thank you so much.
The figure appears like this:
  댓글 수: 2
MP
MP 2022년 6월 23일
Thanks for your reply. But, I would like to add that my actual data is something like CC = 31189x17 matrix.
I use pcolor to plot my first plot, and would like to add another scale to this pcolor plot.

댓글을 달려면 로그인하십시오.

답변(0개)

범주

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by