MATLAB: Plotting graph in matlab

graphMATLABplotreynold

hi i am trying to plot a graph and its about reynold function
Re = [0.1, 0.5, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000, 500000, 1000000]
Re1 = Re * 1;
Re2 = Re/5;
Re3 = Re/263000;
Re4= Re/1000000;
CD1 = (24./Re1);
CD2 = (2.6 * Re2)./ (1 + Re2.^1.52 );
CD3 = (0.411 * Re3.^-7.94)./ (1 + Re3.^-8.00);
CD4 = (0.25 * Re4)./(1+Re4);
CD = (24./Re1) + ((2.6 * Re2)./ (1 + Re2.^1.52 )) + ((0.411 * Re3.^-7.94)./ (1 + Re3.^-8.00)) + ((0.25 * Re4)./(1+Re4));
plot(Re,CD)
whenever I plot it, it comes in a werid shpae
but i want is like a curve graph which is smoothe
Can you guys help

Best Answer

  • loglog(Re, CD)