Data .mat of three different variables x,y,z . Each variable has a list, I need to save those lists in form of matrices [x1,y1,z1] , [x2,y2,z2], etc.

1 visualización (últimos 30 días)
dx=(Sub3.Left.Vel(:,1)); %import data x in form of column
dxt=dx.'; %from column to list
dy=Sub3.Left.Vel(:,2); %import data y in form of column
dyt=dy.'; %from column to list
dz=Sub3.Left.Vel(:,3); %import data z in form of column
dzt=dz.'; %from column to list
dxdt=zeros(3,1); %Matrix of form 1x3
dxdt=[dxt;dyt;dzt]; %Save dxt in 1x1 matrix postion, save dyt in 2x1 matrix postion, dzt in 3x1 matrix postion

Respuesta aceptada

Adam Danz
Adam Danz el 15 de Feb. de 2021
dxdt = Sub3.Left.Vel(:,1:3)';

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by