Defining matlab logspace for semilogx plot

3 views (last 30 days)
I am trying to plot a matlab semilogx plot. How can I define a logspace in matlab from 400 nm to 700 nm?
Thanks in advance,
Raj Patel.

Accepted Answer

Ameer Hamza
Ameer Hamza on 24 Sep 2020
x = logspace(log10(400e-9), log10(700e-9))

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!