Illustration of symbolic variable, MATLAB in Engineering

Illustration of symbolic variable:

When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatically collected:

>> z = sym('z');

>> sym(z^3 + 2*z^3)

ans =

3*z^3

When you want to use the multiple variables as symbolic variable names, the syms function is a shortcut rather than of using sym repetitively. The illustration is as follows,

>> syms x y z

does similar thing as

>> x = sym('x');

>> y = sym('y');

>> z = sym('z');

 

 

Posted Date: 10/22/2012 4:32:13 AM | Location : United States







Related Discussions:- Illustration of symbolic variable, Assignment Help, Ask Question on Illustration of symbolic variable, Get Answer, Expert's Help, Illustration of symbolic variable Discussions

Write discussion on Illustration of symbolic variable
Your posts are moderated
Related Questions
Technique to creating this structure: An alternative technique of creating this structure, that is not as efficient, includes using the dot operator to refer to fields in the

Example of Gauss-jordan: For a 2×2 system, this would results and for a 3 × 3 system, Note that the resulting diagonal form does not involve the right-most col

Function iscellstr - string function: The function iscellstr will return the logical true when a cell array is a cell array of all the strings, or logical false if not. >>

Illustration of anonymous functions: Dissimilar functions stored in the M-files, when no argument is passed to an anonymous function, the parentheses should still be in the fu

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

Passing arguments to functions: In all these functions examples faraway, at least one of the arguments was passed in the function call to be the value(s) of the equivalent inp

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente


Dot Product: The dot or inner product of two vectors a and b is written as a • b and is defined as  In another words, this is like matrix multiplication when multiplyi

Example of file ploting data: As the other example, a data file called 'compsales.dat' stores the sales figures (in millions) for divisions in a company. Each line in the f