can we use Xlswrite in symbolic variables?

2 vues (au cours des 30 derniers jours)
masoud jiryaei
masoud jiryaei le 20 Août 2019
Réponse apportée : KSSV le 20 Août 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?

Réponse acceptée

KSSV
KSSV le 20 Août 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)

Plus de réponses (0)

Catégories

En savoir plus sur Specialized Power Systems dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by