Defining matlab logspace for semilogx plot

2 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)

Community Treasure Hunt

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

Start Hunting!