Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What command is used to compute the natural logarithm of a number in MATLAB?
It's related to the mathematical constant e.
How do you plot a single vector in MATLAB?
What do you think happens if you just input y?
What is the command for calculating the sine of x in MATLAB?
Think about standard function names.
True or False: The command log10(x) calculates the natural logarithm.
Recall the meaning of 'natural' in logarithmic functions.
Develop a MATLAB script that computes and plots both sin(x) and cos(x) for x ranging from 0 to 2π. Include legends to differentiate the two graphs.
Ensure you properly label your axes and title your plot!
Calculate the value of y = log(1000)/log(10) using the properties of logarithms and evaluate it in MATLAB.
What exponent do you raise 10 to, to get 1000?
4 more questions in this section. Enroll free to practise them all.
Enroll free