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 (최근 30일)
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

채택된 답변

Adam Danz
Adam Danz 2021년 2월 15일
dxdt = Sub3.Left.Vel(:,1:3)';

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by