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

 채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 26일

0 개 추천

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에 대해 자세히 알아보기

제품

태그

질문:

2018년 4월 26일

댓글:

2018년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by