Using Two Expressions together in factor()
1 view (last 30 days)
Show older comments
Ehsan Wadood
on 2 Mar 2021
Commented: Ehsan Wadood
on 2 Mar 2021
Could anyon ehelp em with this as I am getting the below mentioned error while using two expressions together in the factor() function. Thanks
syms x y
factor([x^2-y^2,x^3+y^3])
First argument must be scalar.
Accepted Answer
Walter Roberson
on 2 Mar 2021
syms x y
f = arrayfun(@factor, [x^2-y^2,x^3+y^3], 'uniform', 0);
vertcat(f{:})
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!