log plot with multiple y axis

I would like to create a log plot with a common log x axis, but the left y axis for trace 1 to be log, and the right axis for trace 2 to be linear (no-log).
How would I go about doing this?

回答 (1 件)

KSSV
KSSV 2021 年 7 月 1 日

0 投票

yyaxis left
plot(log(rand(1,10)))
yyaxis right
plot(rand(1,10))

1 件のコメント

Nick Turton
Nick Turton 2021 年 7 月 1 日
Maybe I wasn't clear in what I was hoping for
Take the two plots shown below with one plot for gain as a loglog plot and the other for phase as a semilogx.
Ideally I would like to combine these into one plot with
  • gain on yyaxis left, and with the log scale shown
  • phase on yyaxis right, and with a linear axis scaling as shown
  • one common x axis for frequency with log scaling
Is there any way to do this?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLog Plots についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 7 月 1 日

コメント済み:

2021 年 7 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by