Hi all, I have below code to generate a group of graphs. I need to interpolate a line through their maximum points. could you please help? in addition I need to cut the graph below the -0.1 if it is possible. Thanks
Cp=[ ];landa=(0:0.1:16);for B=0:3:30 for i=1:1:length(landa) landa_i=1/((1/(landa(i)+0.08*B))-(0.035/(B^3+1))); Cpi=0.22*((116/landa_i)-(0.4*B)-5)*exp(-12.5/landa_i); Cp=[Cp Cpi]; end if B==0 Cpmax=max(Cp); end plot(landa,Cp,'b'); % mesh(landa,B);
hold on; Cp=[ ];endxlabel('Tip speed ratio');ylabel ('Performance corfficient Cp');hold off;
Best Answer