Matlab writes wrong matrix to Excel

조회 수: 1 (최근 30일)
Laura Albers
Laura Albers 2017년 5월 17일
편집: Stephen23 2017년 5월 17일
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!

채택된 답변

Stephen23
Stephen23 2017년 5월 17일
편집: Stephen23 2017년 5월 17일
  1. Try saving it without transposing the matrix: ...A_proportions')
  2. Are you sure that you are looking at that exact file?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by