hi
i think matlab is beeter than c for fdtd method and the out put is good for matlab
c is more sensetive for errors if u want matlab code 1 D send me u email and i will send it to u
best regard
@learnerlcy: you might want to describe what is wrong (what result you expected etc.)
also, the code in Sullivan has many bugs/does not always compile/is badly designed.
The best advice I can give is: try to understand the FDTD equations and then try to
implement them from scratch in a programming language of your choice.
@aaea3: visualization etc. may be easier in matlab. But if you have larger models then
running time might increase by 1 or 2 orders of magnitude when using matlab instead
of C (in C you can also be more memory efficient).
I am also facing problem with this set of code in C. When the program is compiled, it does not shows the same result as in the book. It seems that the iteration is only ran once when the pulse is at the center. Does anyone here knows where is problem in this code.
I am also facing problem with this set of code in C. When the program is compiled, it does not shows the same result as in the book. It seems that the iteration is only ran once when the pulse is at the center. Does anyone here knows where is problem in this code.