clcclearformat longgfor r1 = 0:.1:1;r2 = 1-r1;f1 = 0:0.1:1;f2 = 1-f1;F1 = ((r1.*f1.^2)+(f1.*f2))./((r1.*f1.^2)+(2*f1.*f2)+(r2.*f2.^2));endplot(f1,F1,'-o')
MATLAB: This code only plot for last value of r1, how to plot for all values of r1
for loopplot
Best Answer