Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How can I plot the functions Sin Cos and Tan in the same axis in Mathlab? this i

ID: 3657085 • Letter: H

Question

How can I plot the functions Sin Cos and Tan in the same axis in Mathlab? this is what the instruction says: Issue the figure(1) command, and then plot sin, cos, and tan on the same axis. I don't understand and I already tried the help function in mathlab

Explanation / Answer

>> x = -pi:0.01:pi; plot(x,sin(x),,r', x, cos(x), 'b', x, tan(x), 'g'), grid on Note:It is better not to plot tan on the same axis as value of sin and cos is between 1- and 1 and for tan infinite so curve of sin and cos is not visible without magnification

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote