The squeeze() function removes singleton dimensions (dimensions whose size are 1).
0
votes
Solution: Create arrays manually. Not very elegant but works.
% tl = top left, br = bottom right, etc.
for i=1:1:100
tlplot(i) = P(1, 1, i);
trplot(i) = P(1, 2, i);
blplot(i) = P(2, 1, i);
brplot(i) = P(2, 2, i);
end
Then, for instance:
plot(1:1:100, tlplot)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more