MATLAB Answers

can we use Xlswrite in symbolic variables?

2 views (last 30 days)
masoud jiryaei
masoud jiryaei on 20 Aug 2019
Answered: KSSV on 20 Aug 2019
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 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 20 Aug 2019
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 Comments

Sign in to comment.

More Answers (0)