execute matlab commands tan(πœ‹/6)⁑sin⁑(0.4πœ‹)+tan250Β° in matlab

To execute the MATLAB commands tan(πœ‹/6) and sin(0.4πœ‹) + tan(250Β°), you can type the following code in the MATLAB Command Window:

main.m
result1 = tan(pi/6);
result2 = sin(0.4*pi) + tan(250*pi/180);
62 chars
3 lines

Here, result1 will store the value of tan(πœ‹/6) and result2 will store the value of sin(0.4πœ‹) + tan(250Β°).

You can view the results in the Command Window by simply typing the variable names:

main.m
result1
result2
16 chars
3 lines

When you run this code, MATLAB will display the calculated values for result1 and result2 in the Command Window.

related categories

gistlibby LogSnag