how can I create a multiplication table and write it to spreadsheet in Matlab?

4 次查看(过去 30 天)
how can I create a multiplication table and write it to spreadsheet in Matlab?

回答(1 个)

Stephan
Stephan 2019-5-12
a = 1:5;
t = a .* a'
writematrix(t,'multiplication.xlsx')

Community Treasure Hunt

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

Start Hunting!

Translated by