Illegal use of "end" error when I run the following code. What am I doing wrong?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nesha Wright
am 20 Jul. 2018
Kommentiert: Nesha Wright
am 20 Jul. 2018
Likely I am missing something obvious...
for n = 1:2015 aggRF(n-1) = (-1.3e-6.*((CH4(n)-CH4(1))/2)-8.2e-6*n+.043)...%CH4 *(sqrt(CH4(n)-sqrt(CH4(1))))... +9-8.0e-6*((CO2(n)-CO2(0))/2)+4.2e6*((N2O(n)-N2O(1))/2)...%N2O -4.9e-6+.117*(sqrt(N2O(n)-sqrt(N2O(1))))... + 0.25*(CFC11(n) - CFC11(1))... %CFC_11 + 0.32*(CFC12(n) - CFC12(1))... %CFC_12 end
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Jul. 2018
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assembly finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!