Changing ArrayDouble to Matrix in MATLAB
Posted: Wed Mar 13, 2019 4:26 pm
Hello All,
I am working with OpenSim API through MATLAB. If A is my storage, I use this command to get states vector @ time t:
B=A.getStateVector(t-1);
C=B.getData();
C is an arraydouble variable. I can access to the element m by this command:
C.getitem(m-1)
However, I don't want to use a for loop to access all elements of C. Is there any way that I can easily get C as a matrix in MATLAB?
Thank you in advance,
Mohammad
I am working with OpenSim API through MATLAB. If A is my storage, I use this command to get states vector @ time t:
B=A.getStateVector(t-1);
C=B.getData();
C is an arraydouble variable. I can access to the element m by this command:
C.getitem(m-1)
However, I don't want to use a for loop to access all elements of C. Is there any way that I can easily get C as a matrix in MATLAB?
Thank you in advance,
Mohammad