Posts

Showing posts from April, 2021

Matlab basic example

 1. Defining a row matrix and performing operations on it Assume that you want to evaluate the function f(x) = x^3-6x^2 + 3 at different values of x. This can be accomplished with two lines of MATLAB code. % Define the values of x x = 0:0.01:1; % Evaluate f f = x .^ 3 - 6 * x .^ 2 + 3; In this example, x varies between 0 and 1 in steps of 0.01. Comments are preceded by a % sign. The symbols ˆ and * stand for the power and multiplication operators respectively. The dot in front of ˆ n indicates that each entry of the row matrix x is raised to the power n. In the absence of this dot, MATLAB would try to take the nth power of x, and an error message would be produced since x is not a square matrix. A semicolon at the end of a command line indicates that the output should not be printed on the screen.

Use of Matlab

 MATLAB is being used in the following fields. 1. Embedded Systems  2. Digital signal processing  3. Control Systems  4. Wireless Communication  5. Digital Communication 6. Digital Image processing 7. Deep Learning 8. Robotics  9. Linear Algebra  10. Power Systems 

Definition of MATLAB software

  Matlab is a programming language similar to other well-known languages such as Java, C#, etc., which comes with its own IDE (that is Integrated Development Environment) and set of libraries. Matlab is an abbreviation of the term “Matrix Laboratory” since it was initially referred to as the matrix programming language. It is a fourth-generation programming language. It was first discovered by Cleve Moler