I am using MATLAB R2015a. When using a Java LinkedList in MATLAB environment, adding row vectors and then retrieving them appears to transpose them into column vectors. For example,
import java.util.LinkedList
x = [285 252 100 67]
y = [280 252 107 71;
374 157 72 48]
z = [284 253 103 68]
LL = LinkedList();
LL.add(x);
LL.add(y);
LL.add(z);
xn = LL.remove()
yn = LL.remove()
zn = LL.remove()
xn, yn and zn yield the following:
xn =
285
252
100
67
yn =
280 252 107 71
374 157 72 48
zn =
284
253
103
68
It only happens when the original vector is strictly 1 x n. Is there a way to prevent this from happening without adding a checking condition at the end of every remove() ?