solution to a syntax problem

I'm trying to create a program where it goes by evaluating by sections a number of certain numbers but now that I try programs it appears to me that it has a syntax error
"parse error EOL usage might be invalid matlab syntax
TJ1=input('concentracion del tajo 1 '); %las concentaciones deben de estar en un rango de accion todas
TJ2=input('concentracion del tajo 2 ');
TJ3=input('concentracion del tajo 3 ');
TJ4=input('concentracion del tajo 4 ');
TJ5=input('concentracion del tajo 5 ');
TJ6=input('concentracion del tajo 6 ');
TJ7=input('concentracion del tajo 7 ');
TJ8=input('concentracion del tajo 8 ');
TJ9=input('concentracion del tajo 9 ');
TJ10=input('concentracion del tajo 10 ');
TPL=input ('toneladas permitidas en planta ');
pe=input('error permitido '); %error permitido para el incremento
C=input('concentracion a obtener ');
in=pe/100;
for i=1:in:TPL
for j=1:in:TPL
for
k=1:in:TPL;
for
l=1:in:TPL;
for
n=1:in:TPL;
for
m=1:in:TPL;
for
o:in:TPL;
for
p=in:TPL;
for
q=1:in:TPL;
for
v=1:TPL;
CON=i*(TJ1/100)+j*(TJ2/100)+k*(TJ3/100)+l*(TJ4/100)+n*(TJ5/100)+m*(TJ6/100)+o*(TJ7/100)+p*(TJ8/100)+q*(TJ9/100)+v*(TJ10/100);
end
end
end
end
end
end
end
end
end
end

 Accepted Answer

You have
for
k=1:in:TPL;
This is not valid syntax. The loop expression must be on the same line as the "for" keyword.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Tags

Community Treasure Hunt

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

Start Hunting!