Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in extraction (line 32) [f0,idx] = pitch(x,fs,Method="SRH",WindowLength=win
22 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Divya
el 24 de Dic. de 2024 a las 13:47
Respondida: Star Strider
el 24 de Dic. de 2024 a las 15:15
why do i get this sort of error
0 comentarios
Respuestas (2)
Image Analyst
el 24 de Dic. de 2024 a las 14:51
The function called pitch() returns more than the 2 outputs that you are requesting. It takes 3 or more. What does the function line of pitch (in its source code if you have it) look like? Or, if you don't have source code for that function, then what does the documentation say for how to call pitch()?
0 comentarios
Star Strider
el 24 de Dic. de 2024 a las 15:15
The Audio Toolbox pitch function (that matches the syntax you quote) produces two outputs, and (other than a missing right parenthesis), the assignment appears to be correct.
Check to be certain that you have not defined your own ‘pitch’ function that is overshadowing the Toolbox function.
Run:
which pitch -all
from a script or your Command Window and report the resuts. (I suspect that more than one of them will be found.)
.
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!