MATLAB: New to MATLAB…can’t find what’s wrong in this code….

assignmentchaotic sequencecodeerrorlogistics map

a=2;
x=0.5;
for i=1:1000
{
plot(i,x);
x = a*x-a*x.^2);
}
end
I'm trying to plot a logistics map….but I keep getting the error: "The expression to the left of the equals sign is not a valid target for an assignment."
Can someone help me?

Best Answer

the '{}' should be removed,nothing else is wrong,go on with it.
Related Question