How to plot the vectors having different length

hello, Error using semilogy/plot Vectors must be the same length. how do i plot with different length?

 Risposta accettata

Replace the line
semilogy(f,c_1)
with
semilogy(f(1:numel(c_1)),c_1)

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Tag

Richiesto:

il 23 Mar 2018

Commentato:

il 23 Mar 2018

Community Treasure Hunt

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

Start Hunting!

Translated by