Help on exporting equations from matlab to excel (Not Values, Actual excel equations)
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!