How to fix the bugs in my matlab code?

Dear, thank you for your precious time.
I have problem in my code. Currently there is anxptected error apearing during the run. Please could you help me to fix if possible.
Thank you
Here the code in zip attached to this message

3 comentarios

Sindar
Sindar el 16 de Feb. de 2020
Editada: Sindar el 16 de Feb. de 2020
what error? Put a sample of the code near the error in a code block here.
In general, if you have a code issue, don't say "it's broken, fix it". Instead, spend the time to identify what information is actually relevant. Error messages and the line of code error-ing always are needed. Also include the few lines previous which define variables used in that line.
Image Analyst
Image Analyst el 16 de Feb. de 2020
This is what I see:
>> main
Start "Simulation of broadband FWM cascade in fiber cavity"Unrecognized function or variable 'gvd_curve_pcf2'.
Error in main (line 54)
[pl_fib_dom, pl_fib_loss]=gvd_curve_pcf2;
You need to get that "gvd_curve_pcf2()" function and it looks like Walter is giving you the location of it below in his answer.
Fabrice shao
Fabrice shao el 17 de Feb. de 2020
Thank you so much. for your feedback

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Preguntada:

el 16 de Feb. de 2020

Comentada:

el 17 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by