Borrar filtros
Borrar filtros

semilogx error, vectors must be same length

2 visualizaciones (últimos 30 días)
Miles Hao Peng Su
Miles Hao Peng Su el 30 de Dic. de 2022
Comentada: Miles Hao Peng Su el 30 de Dic. de 2022
Hi, I am trying to plot a graph with logarithmic scale with semilogx, however I have encountered problem using it.
I have checked that both Freq' and abs(Zexp01) are 31 by 24, so they are the same size. However I still encounter problem that says vectors must be the same size. May I know how to solve this?
Thank you!

Respuesta aceptada

VBBV
VBBV el 30 de Dic. de 2022
semilogx(freq,abs(Zexp01),'.') % use freq
  2 comentarios
VBBV
VBBV el 30 de Dic. de 2022
use
freq
instead of
Freq
and without transpose operator '
Miles Hao Peng Su
Miles Hao Peng Su el 30 de Dic. de 2022
aye thanks! this works!

Iniciar sesión para comentar.

Más respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 30 de Dic. de 2022
Editada: Sulaymon Eshkabilov el 30 de Dic. de 2022
Plot them like this way then by removing the transpose operation:
plot(freq, abs(Zexp01), '.')

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by