How to plot the 4th dimension of an array?
1 次查看(过去 30 天)
显示 更早的评论
Hi All,
I retrieved a matrix that stores a variable called temp. The matrix is 4D. If I want to retrieve only the 4th column and plot it how can i do that?
0 个评论
采纳的回答
Walter Roberson
2013-12-4
编辑:Walter Roberson
2013-12-4
threeD_array = permute( YourMatrix(:,4,:,:), [1 3 4 2]); %column 4
But then you have the problem of how to plot a 3D array, as doing so requires a 4D plot -- X, Y, Z, and value.
更多回答(1 个)
Sabarinathan Vadivelu
2013-12-4
编辑:Sabarinathan Vadivelu
2013-12-4
Extract the 4th dimension first.
fourthDimMatrix = allMatrix(:,:,4)
Then try plot function
3 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!