How to plot the vectors having different length

3 Ansichten (letzte 30 Tage)
Rexy
Rexy am 23 Mär. 2018
Kommentiert: Birdman am 23 Mär. 2018
hello, Error using semilogy/plot Vectors must be the same length. how do i plot with different length?

Akzeptierte Antwort

Birdman
Birdman am 23 Mär. 2018
Replace the line
semilogy(f,c_1)
with
semilogy(f(1:numel(c_1)),c_1)

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by