I would like to plot a curve with each point with different color.(adsbygoogle = window.adsbygoogle || []).push({});

For example

x0=2;

for i=1:1:200

x1=x0*cos(x0)+exp(x0);

plot(i,x1) (THIS IS THE PLACE WHERE I WANT TO PUT DIFFERENT COLOR)

x0=x1;

end

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Plot graph of different color for different points? Matlab

**Physics Forums | Science Articles, Homework Help, Discussion**