symbolic error
Show older comments
when i run the example in the help document as
x = cell(3, 10);
for i = 1:10
for j = 1:3
x{j,i} = sprintf('x%d%d',i,j);
end
end
x = x(:); % now x is a 30-by-1 vector
x = sym(x, 'real');
an error is repoted as
??? Error using ==> sym.sym at 164
Error using ==> maplemex
Error, (in assume) invalid arguments
Error in ==> optimalFun at 27
x = sym(x, 'real');
by the way, my m file is named as optimalFun.m
any help are appreciated. thanks a lot1
Accepted Answer
More Answers (0)
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!