can we use Xlswrite in symbolic variables?

1 回表示 (過去 30 日間)
masoud jiryaei
masoud jiryaei 2019 年 8 月 20 日
回答済み: KSSV 2019 年 8 月 20 日
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?

採用された回答

KSSV
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 件)

カテゴリ

Help Center および File ExchangeSpecialized Power Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by