Symbolic variables and expressions, MATLAB in Engineering

Symbolic Variables and expressions:

The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a symbolic variable a and execute the addition, at first a symbolic variable would be generated by passing the string 'a' to the sym function:

>> a = sym('a');

>> a+a

ans =



Also the Symbolic variables can store expressions. For illustration, the variables b and c store symbolic expressions as:

>> b = sym('x^2');

>> c = sym('x^4');

Posted Date: 10/22/2012 4:30:33 AM | Location : United States

Related Discussions:- Symbolic variables and expressions, Assignment Help, Ask Question on Symbolic variables and expressions, Get Answer, Expert's Help, Symbolic variables and expressions Discussions

Write discussion on Symbolic variables and expressions
Your posts are moderated
Related Questions
Changing Case: The MATLAB has two functions which convert strings to all uppercase letters, or all lowercase, known as the upper and lower. >> mystring = 'AbCDEfgh';

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Technique to create Nested structures: This technique is the most proficient. Though, the other technique is to build the nested structure one field at a time. As this is a ne

Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

A matlab function to calculate filter order

Tracing of Square matrices: The trace of a square matrix is the addition of all the elements on the diagonal. For illustration, for the preceding matrix it is 1 + 6 + 11 + 16,

FOR Loop: The for loop, or the for statement, is used whenever it is essential to repeat statement(s) in the script or function, and whenever it is known ahead of time how man

Function cirarea - Anonymous functions: The function handle name is cirarea. The one argument is passed to the input argument radius. The body of the function is an expression

Interchange rows : for illustration interchanging rows ri and rj is written as

Illustration of Set operations: For illustration, given the vectors as shown below: >> v1 = 2:6 v1 = 2  3  4  5  6 >> v2 = 1:2:7 v2 = 1  3  5  7