I want to seperate a rational function to num and denom:
i.e x*y/(2*z) ===> n = x*y d = 2*z
here is my code:
func = input('Enter the function: ');
[n d] = numden(func);
disp(n);
>> test
Enter the function: x*y/(2*z)
??? Error using ==> input
Undefined function or variable 'y'.
Error in ==> test at 1
func = input('Enter the function: ');
You have to use symbolic objects.