Function numden, MATLAB in Engineering

function numden:

The function numden will return individually the numerator & denominator of a symbolic expression:

>> sym(1/3 + 1/2)

ans =

5/6

>> [n, d] = numden(ans)

n =

5

d =

6

>> [n, d] = numden((x^3 + x^2)/x)

n =

x^2*(x 1)

d =

x

 

 

Posted Date: 10/22/2012 4:36:35 AM | Location : United States







Related Discussions:- Function numden, Assignment Help, Ask Question on Function numden, Get Answer, Expert's Help, Function numden Discussions

Write discussion on Function numden
Your posts are moderated
Related Questions
Creating a cell array: The other method of creating a cell array is easy to assign values to particular array elements and build it up element by element. Though, as explained

Use of While loop: Here is an illustration of calling the function, passing 5000 for the value of the input argument high. >> factgthigh(5000) ans = 5040 The itera

Finding a sting - function strfind: The function strfind does necessarily similar thing, except that the order of the arguments does make dissimilarity. The common form is str

Replacing a string - function strrep: The function strrep finds all the occurrences of a substring within the string, and substitutes them with a new substring. The order of a

Reading from a File in a While Loop: Though in most languages the combination of a loop and an if statement would be essential to determine whether or not the elements in a ve

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

Executing a program: Running the program would be completed by typing the name of the script; this would call the other functions: >> calcandprintarea Whenever prompt


deblank function: The deblank function eliminates only trailing blanks from the string, not leading the blanks. The strtrim function will eliminate both the leading and traili

Example of image processing: The other illustration generates a 5 × 5 matrix of arbitrary integers in the range from 1 to the number of colors; the resultant image is as shown