how can i make a column from excel data to a matric.

조회 수: 1 (최근 30일)
Iman Ramzanpoor
Iman Ramzanpoor 2020년 10월 9일
편집: Iman Ramzanpoor 2020년 10월 11일
Hi,
I have 1:21600 for six degree freedom data in excel. I need to transform the results coordinate (global coordinate) for a specific point and I never used matlab. in the attached pic i discribe exactly what i am looking for.
Please see the attached pic.

답변 (1개)

KSSV
KSSV 2020년 10월 10일
tx = rand(10,1) ;
ty = rand(10,1) ;
tz = rand(10,1) ;
C = [tx ty tz] ;
m = length(tx) ;
A = zeros(4,4,m) ;
for i = 1:m
A(1:3,1:3,i) = eye(3) ;
A(1:3,4,i) = C(i,:) ;
end
  댓글 수: 3
KSSV
KSSV 2020년 10월 11일
You have some length for the columns....I have used Rand to create dummy datafor demo. I have taken it'slength tobe 10. This is for demo puprose.
Iman Ramzanpoor
Iman Ramzanpoor 2020년 10월 11일
편집: Iman Ramzanpoor 2020년 10월 11일
Hi KSSV,
thanks for your reply. as i mentioned i never used MATLAB before. to be more clear, please find attached pic. i explained what i am looking for. it is multipication of matric to vector. i appreciate your help.

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by