I am getting a parse error on the = sign in the third line but i cant seem to figure out why. Any suggestions and or solutions? Thanks
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Shane McNamara
el 27 de Sept. de 2017
Comentada: Shane McNamara
el 27 de Sept. de 2017
N = 1000;
r = .5;
x.*(i+1) = r.*x.(i).*(1-x)
x = zeros(1,N);
x(1) = rand(1);
for i=1:N-1
x(i+1) = r.*x(i).*(1-x(i));
end
plot(x);
0 comentarios
Respuesta aceptada
KSSV
el 27 de Sept. de 2017
The line where errors pops is unnecessary.
N = 1000;
r = .5;
% x(i+1) = r.*x.(i).*(1-x)
x = zeros(1,N);
x(1) = rand(1);
for i=1:N-1
x(i+1) = r.*x(i).*(1-x(i));
end
plot(x);
Más respuestas (0)
Ver también
Categorías
Más información sobre Entering Commands en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!