Hi Friends,(adsbygoogle = window.adsbygoogle || []).push({});

The code below is for 2D ploting in Matlab, I want to change it in 3D, please if any one know how to do this.let me know

thanks in advance

figure(1);

popcosts=[pop.Cost];

repcosts=[rep.Cost];

plot(popcosts(1,:),popcosts(2,:),'b.');

hold on;

plot(repcosts(1,:),repcosts(2,:),'r*');

hold off;

legend('Normal Particles','Repository Particles');

xlabel('f_1');

ylabel('f_2');

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

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

# MATLAB, 3D plotting

Tags:

Loading...

Similar Threads for MATLAB plotting |
---|

MATLAB Plotting Coordinate Transformations in Matlab |

MATLAB Plotting animations (time-evolution) |

MATLAB Does anyone had this plotting problem with MATLAB? |

MATLAB Matlab's plot command |

MATLAB Matlab -- how to make a smooth contour plot? |

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