Borrar filtros
Borrar filtros

What is this error in Script file?

8 visualizaciones (últimos 30 días)
adrooney
adrooney el 5 de Oct. de 2014
Comentada: Anees kazi el 14 de Ag. de 2015
X=zeros (1,1301);
time =0:0.05:65;
k=0.05;
for i=2:1301
X(i) = ((k*(0.293*X(i-1)^2)-(0.542*X(i-1))+0.354)*0.05) +X(i-1);
end
plot (time, X)
hold on
plot (timeopc25, alphaopc25,'--')
legend('Predicted Data','Experimental data');
It tells, not formed from a valid matlab identifier. What does this mean? Thanx in advance
  4 comentarios
Star Strider
Star Strider el 6 de Oct. de 2014
We don’t have ‘timeopc25’, and ‘alphaopc25’ so we can’t help you with them.
adrooney
adrooney el 6 de Oct. de 2014
@Star Strider Please check my code and the graph just doesn't converge on the original graph. I have included the timeopc25 and alphaopc25 files too.

Iniciar sesión para comentar.

Respuesta aceptada

Bruno Pop-Stefanov
Bruno Pop-Stefanov el 6 de Oct. de 2014
This error usually occur when there is a space in an M-file, or other forbidden characters. Check that the script file containing the code has a correct name with no white spaces.
This is incorrect: "my file.m"
This is correct: "myfile.m"

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by