Effacer les filtres
Effacer les filtres

Matlab writes wrong matrix to Excel

2 vues (au cours des 30 derniers jours)
Laura Albers
Laura Albers le 17 Mai 2017
Modifié(e) : Stephen23 le 17 Mai 2017
Hello everyone, I am writing a matrix (named: "A_proportions") from the workspace to an empty Excel spreadsheet (named: "proportions"). Nonetheless, when opening the Excel sheet the rows and columns are switched. In Matlab I gave the following command:
xlswrite('X:/My Documents/Msc. International Economics/MSc. Thesis/Data WIOD/proportions.xlsx',A_proportions')
Does anyone have an idea what I might be doing wrong? Thank you in advance!

Réponse acceptée

Stephen23
Stephen23 le 17 Mai 2017
Modifié(e) : Stephen23 le 17 Mai 2017
  1. Try saving it without transposing the matrix: ...A_proportions')
  2. Are you sure that you are looking at that exact file?

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by