f=60 ;gg=tan(f);H=6; l=[-6:0.1:20]; x=l'if (l<0) s=0endif (l>=0&l<(H/gg)) s=l.*ggendif (l>=(H/gg)) s=Hendcc=length(x)ll=length(s)plot(l,s,'r-')
Hello. I want to write this code such that the length of x and s are thesame so I can use it to draw lines. I have tried a couple of options but can't seem to figure it out, I only get one output of s. can anybody help me out. thank you.
Best Answer