In mathematical calculations, sinusoidal values are frequently used. You can define the sinusoidal values in Matlab®. In this article we will show you;
- What kind of sinusoidal values can be calculated in mathematical relations in Matlab®?
- How to calculate arc values of sinusoidal values in Matlab®?
How To Use Sinusoidal Functions In Matlab®?
>> a = sin(pi/2) b = cosd(90) c = atan(0.5) d = acosd(0.3) a = 1 b = 0 c = 0.4636 d = 72.5424 >>
The sinusoidal functions are defined as;
- Directly typing a radian value inside the sinusoidal function as shown above,
- Typing an angle value inside the sinusoidal functions such as; ‘cosd, sind tand etc…’ The ‘d’ at the end of sinuzoidal function defines the degree value that you need to enter inside the sinusoidal function.
- You can calculate the angle or radian value with reverse sinusoidal functions in Matlab®. For example, the variable c as shown above is the reverse sinusoidal calculation of ‘tan’. The ‘a’ at the ‘tan’ means ‘arc’ in another word ‘arctan’ in Matlab®. The result will be shown as radians.
- Also, you can take the result as angle value from reverse sinusoidal function calculations in Matlab® as shown above. You just type ‘d’ at the end of ‘atan’ which is ‘atand’ to calculate as degrees as shown in Matlab®.
>> a = sin(pi/2) b = cosd(90) c = atan(0.5) d = acosd(0.3) a*b/c a = 1 b = 0 c = 0.4636 d = 72.5424 ans = 0 >>
Mathematical calculations with sinusoidal functions in Matlab®.
Also, you can do direct mathematical calculations such as multiplication or dividings with sinusoidal functions as shown in Matlab®.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
The use and the features of sinusoidal functions are explained with very basic examples in this article. If you wish, we can add much more complex examples and real engineering examples about sinusoidal functions in Mechanical Base.
Leave your comments and questions about sinusoidal functions in Matlab® below!
This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®
Your precious feedbacks are very important to us.