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 =


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
Illustration of initializing the data structure: illustration of initializing the data structure by preallocating is here as shown: >> cyls(3) = struct('code', 'c', 'dimen

Example of Plotting from a Function: For illustration, the function can be called as shown below:      >> y = [1:2:9].^3      y =     1  27  125  343  729

Replacing, Finding, and separating strings: There are numerous functions which find and replace the strings, or parts of strings, within the other strings and functions which

Illustration of Passing arguments to functions: Here is an illustration of calling this function: >> printrand() The random # is 0.94 As nothing is passed to

Illustration of Subfunctions: This is an illustration of running this program: >> rectarea Please enter the length: 6 Please enter the width: 3 For a rectan

Illustration of gauss-jordan elimination: An illustration of interchanging rows would be r1 ¬→ r3, that would results: Now, beginning with this matrix, an illustration of sc

Plotting from a Function: The following function creates a Figure Window as shown in figure, which shows various types of plots for similar y vector. The vector is passed as a

Comparing strings: There are few functions which compare strings and return logical true when they are equivalent or logical false when not. The function strcmp compares the s

Converting between the String and Number types: The MATLAB has many functions which convert numbers to strings in which each character element is a separate digit, and vice ve