can we use Xlswrite in symbolic variables?
1 次查看(过去 30 天)
显示 更早的评论
I have a matrix (for example [B]) which it includes symbolic variables in its rows.
So I want to transfer it to Excel , is it possible?
0 个评论
采纳的回答
KSSV
2019-8-20
syms x_1 y_1
A_sym = sym(zeros(2,2));
A_sym(1,1) = x_1;
A_sym(2,1) = x_1 * y_1 ;
A_sym(2,2) = y_1;
sym_cell = arrayfun(@char,A_sym, 'uniform', 0) ;
xlswrite('test.xlsx',sym_cell)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!