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

 采纳的回答

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.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by