How to plot the vectors having different length

3 vues (au cours des 30 derniers jours)
Rexy
Rexy le 23 Mar 2018
Commenté : Birdman le 23 Mar 2018
hello, Error using semilogy/plot Vectors must be the same length. how do i plot with different length?

Réponse acceptée

Birdman
Birdman le 23 Mar 2018
Replace the line
semilogy(f,c_1)
with
semilogy(f(1:numel(c_1)),c_1)
  2 commentaires
Rexy
Rexy le 23 Mar 2018
thanks.
Birdman
Birdman le 23 Mar 2018
You are welcome.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by