using 3D arrays and manipulating to plot data
Ältere Kommentare anzeigen
I am using the latest version of MAtlab and trying to manipulate a 3D array. Basically it is something like this I have a 4x4x201 array and when I type the command plot(array(1,1,:)) it comes up with an error Error using ==> plot Data may not have more than 2 dimensions
all I want to do is to display the values long this part of the data. how do I do that? or another problem I have found is how do I cut out the 4x4 part and am left with a 1x201 array. It seems so straight forward what I want to do but i do not seem to know the MATLAB lingo to do it.
Antworten (3)
Walter Roberson
am 23 Jul. 2011
plot(squeeze(array(1,1,:)))
Charalambos
am 23 Jul. 2011
0 Stimmen
Larry
am 4 Nov. 2013
0 Stimmen
y(1,:)=array(1,1,:); plot(y)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!