フィルターのクリア

Help on exporting equations from matlab to excel (Not Values, Actual excel equations)

1 回表示 (過去 30 日間)
saher
saher 2015 年 4 月 6 日
So just like the title im trying to export equations written in matlab to excel. This is my code.
Letters=char('A'+(1:26)-1)';
plus='+';
equal='=';
s1={'1';'2';'3';'4';'5';'6';};
Threshold=2;
for (xx=1:3)
eq1(xx)=strcat(equal,Letters((1+Threshold)),s1(xx),plus,Letters((2+Threshold)),s1(xx));
end
eq1=eq1';
T=table(eq1);
writetable(T,'TestA.xlsx','Range','F5')
Basically what this code does is to put a string repsrenting an equation together.Then a for loop is used for how many rows in 1 column.This is then exported to excel to be equations.
This code works for simple equations.However, if functions is long and depends on different factors or huge for loops then this code will not be viable nor simple to make. Is there an easier or simpler way to create those equations then export them to excel?
Thanks in advance,

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by