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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.