how to write a function which converts graphs from linear scale to logarithmic scale and plot them both?

how to write a function which converts graphs from linear scale to logarithmic scale and plot them both?
in matlab r2019b

 Accepted Answer

To convert the scale of an existing graph from linear to log, you can do,
set(gca,'YScale','log')
set(gca,'XScale','log')

More Answers (0)

Categories

Find more on Networks in Help Center and File Exchange

Products

Tags

Asked:

on 23 Oct 2021

Answered:

on 23 Oct 2021

Community Treasure Hunt

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

Start Hunting!