Plotting a multidimensional array (or a 3D matrix)

19 views (last 30 days)
I am looking to plot a multidimensional array. The array itself essentially consists of stacks(or layers) of 2D matrices. The elements of one 2D matrix is related and correspondent to another element above and below given the same X and Y cordinates. Basically, a column of the 3D matrix should act as its own vector.
The dimensions of the mulitdimensional array include axes x, y, and z:
  • x - the number of rows in a 2D matrix
  • y - the number of columns in a 2D matrix
  • z - the number of total matrices
I want to plot all values of the multidimensional array.

Answers (1)

Steven Lord
Steven Lord on 20 Jul 2022
What type of plot do you want to create? Look at the thumbnails in the Plots Catalog (the Plots tab of the Toolstrip) and see one that looks like the type of graphical display you want. Generally the name you see below the thumbnail or when you hover over it will be the name of the function that creates that type of plot. Search for that name in the documentation for information on how to call it and what options it offers to customize the plot.

Categories

Find more on Line Plots in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!