Borrar filtros
Borrar filtros

Lplot error vector must be the same length

1 visualización (últimos 30 días)
Ewan Hislop
Ewan Hislop el 9 de Ag. de 2019
Respondida: Athul Prakash el 12 de Ag. de 2019
Hi,
I am having trouble with a in house script I use to plot the average spectrum of my Raman spectroscopy data.
Please find attached a copy of the script and error I am getting. Strange given it was working fine yesterday.
Please help! I have a presentation on Monday :(\
Thanks,
Ewan
  3 comentarios
Ewan Hislop
Ewan Hislop el 9 de Ag. de 2019
this is the file name of the raman spectra
KALYAN ACHARJYA
KALYAN ACHARJYA el 9 de Ag. de 2019
You are passing these two variable to the lplot function.

Iniciar sesión para comentar.

Respuestas (1)

Athul Prakash
Athul Prakash el 12 de Ag. de 2019
Hi Ewan,
The plot function here (called inside lplot) is trying to plot shift on the x-axis vs PC3_48DMSO20 on the y-axis. Hence, these vectors need to be of the same length. Please check their lengths using the size() function.
You may need to trim one of these variables, depending on what they contain, to plot it against the other as needed.
As mentioned by others, if you could share the output of whos shift and whos PC3_48DMSO20, the community could help you better.
Good Luck!

Categorías

Más información sobre Line 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