%Start of code
n=100;x0=3;y0=4;x=linspace(0,20,n);y=[];for i=1:n; phi(i)=45+3*randn; m(i)=tand(phi(i)); c(i)= y0-m(i)*x0;y(i,:)=m(i)*x+c(i);plot(x,y(i,:))hold onend
MATLAB: I would like to do the same thing as the following code but with only one line that gets drawn at different angles… Any ideas
code
Best Answer