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.

1 件のコメント

john  zuluaga
john zuluaga 2018 年 4 月 26 日
thank you very much ah been very helpful

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop 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