how can i solve the matlab warning message
Ältere Kommentare anzeigen
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 Kommentare
dpb
am 20 Aug. 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
am 20 Aug. 2014
Image Analyst
am 20 Aug. 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
am 21 Aug. 2014
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Function Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!