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.m62 chars3 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.m16 chars3 lines
When you run this code, MATLAB will display the calculated values for result1 and result2 in the Command Window.
gistlibby LogSnag