While reading a tutorial on Octave I found the following line of code that produces a sin plot:
fplot (@sin, [-10, 10]);
I decided I wanted to plot tan instead of sin so I entered the following command:
fplot (@tan, [-10, 10]);
When I did this I got the following plot:
Why did I get that graph instead of one of a tan function? How can I plot a tan function?