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

4 views (last 30 days)
how can I create a multiplication table and write it to spreadsheet in Matlab?

Answers (1)

Stephan
Stephan on 12 May 2019
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!