how can i solve the matlab warning message
Mostrar comentarios más antiguos
hello i'm a PHD student and a new in the matlab i have a formula that i need to integrate it numerically and plot it when i tried to do this result contain the letter i and the warning message appeard
Q = quad(@myfun,0,0.693)
Q =
-0.0000 + 0.0037i
This warning message appeared Warning: Imaginary parts of complex X and/or Y arguments ignored
i don't know what should i do please help me, i will send the file.m in the attachement file
4 comentarios
dpb
el 20 de Ag. de 2014
Without seeing the functional form you're trying to integrate can't say much other than the evaluation as you wrote it returned a complex value. Whether that's inherent in the function or a coding error is indeterminable w/o more info.
Need the defining equation to be integrated, probably -- if there's an error in implementation wouldn't necessarily be able to tell without knowing what was intended.
shayma mohammed
el 20 de Ag. de 2014
Image Analyst
el 20 de Ag. de 2014
Do you want to suppress the warning, so that it does not appear, or do you want to avoid the situation that gave rise to the warning?
shayma mohammed
el 21 de Ag. de 2014
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Function Creation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!