How to plot the vectors having different length

3 views (last 30 days)
hello, Error using semilogy/plot Vectors must be the same length. how do i plot with different length?

Accepted Answer

Birdman
Birdman on 23 Mar 2018
Replace the line
semilogy(f,c_1)
with
semilogy(f(1:numel(c_1)),c_1)

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!