"the input character is not valid"

1 view (last 30 days)
Carl-Fabian
Carl-Fabian on 24 Sep 2014
Edited: Guillaume on 24 Sep 2014
I started writing this program, but the #include at the top of the screen didn't light up. See my program below: http://s716.photobucket.com/user/Pitoraq/media/include_zps5796d485.png.html Im beginner in Matlab so i dont know how to fix it :(
  3 Comments
Carl-Fabian
Carl-Fabian on 24 Sep 2014
I tried it on Eclipse in c project and it didnt work either.
Guillaume
Guillaume on 24 Sep 2014
Edited: Guillaume on 24 Sep 2014
Your code is a very simple C program which compiles fine for me (Visual studio with a very small modification to account for a fact that VS doesn't define M_PI).
Find an eclipse support forum if you need help getting it to compile.

Sign in to comment.

Answers (1)

Guillaume
Guillaume on 24 Sep 2014
matlab and C are two completely different language. Your program is in the C language. What made you think it would work in matlab?
Also, please don't post images of your code. Just copy-paste in the question (and use the code formatting button).

Community Treasure Hunt

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

Start Hunting!