MATLAB: Illegal use of “end” error when I run the following code. What am I doing wrong

endequationerrorfor loop

Best Answer

The final line
+ 0.32*(CFC12(n) - CFC12(1))... %CFC_12
ends in dot dot dot (indicating it continues on the next line), when it should end in semicolon
+ 0.32*(CFC12(n) - CFC12(1)); %CFC_12