필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by