HELP!how to show the solution matrix variable x(i,j,k,l)

조회 수: 1 (최근 30일)
Qiandong Dong
Qiandong Dong 2019년 11월 7일
답변: Walter Roberson 2019년 11월 7일
x(i,j,k,l)is a solution,how to show let's value or how to save it into excel?

답변 (1개)

Walter Roberson
Walter Roberson 2019년 11월 7일
If you have a 4D array, then to store it in excel, you will need to do one of the following (or a combination)
  • write 2D sections to individual files, using size(x,3) * size(x,4) files
  • write 2D sections to individual sheets of a file, using size(x,3) * size(x,4) sheets
  • write 2D sections to individual sheets, one sheet for each 3rd dimension, one file for each 4th dimension, so size(x,3) sheets per file and size(x,4) files
  • reshape() 4D to 2D and write all to one file
  • reshape() 4D to 3D and write each plane to a separate sheet or separate file
  • re-arrange parts side-by-side so that you get groups of size(x,2) columns, with size(x,3) groups together, for a total of size(x,2) * size(x,3) columns, and using one sheet or one file for each element of the 4th dimension

카테고리

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