Why does the LOG10 function return an error on SYM objects in MATLAB 6.5 (R13)?
Show older comments
When I run the following code in MATLAB 6.5 (R13) :
x = sym('x')
log10(x)
I get the following error message:
??? Error using ==> log2
Function 'log2' is not defined for values of class 'sym'.
Error in ==> C:\MATLAB6p5\toolbox\matlab\elfun\log10.m
On line 17 ==> y = log2(x);
This code works correctly in MATLAB 6.1 (R12) and returns the following result:
ans =
1125899906842624/2592480341699211*log(x)
Accepted Answer
More Answers (0)
Categories
Find more on Assumptions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!