Problem Write a program in Matlab to ask the user with the length of the two sides and angle between two sides. Then use the following relation to calculate the third side of the triangle: Equation to calculate the third side of the triangle if two sides and angle is given Solution We can solve this right hand side of the equation to get the value of the third side. But we will have to write the above equation to matlab equivalent. It is very easy and we will solve using functions. I suggest you refer to program section and then refer to the explanation section to get a detailed explanation of the same. Some of the concepts you need to know to solve the problem are as follows: 1) Matlab functions 2) Operator Precedence 3) input function 4) Matlab Variables 5) fprintf in Matlab Program 1 This is functional approach 1 2 3 4 5 function size = third_side_function (a,b,theta) %third_side(a,b,theta) will give the length of third side of triangle size = a
With Radius of Circle, people can learn to program and have hands-on tutorials with python and Matlab. ProjectEuler problems solutions are also available to have a better solution and improve the knowledge of people. A lot of algorithms which form the basic programming are also available. I hope the internet community will make use of this blog.