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 mathlabExplanation / 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
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.